pub struct SceneObject {
pub id: String,
pub name: String,
pub kind: String,
pub position: [f32; 3],
pub rotation: [f32; 3],
pub scale: [f32; 3],
pub parent_id: Option<String>,
pub asset_ref: Option<String>,
pub material: Option<MaterialDef>,
pub primitive: Option<String>,
pub properties: HashMap<String, Value>,
}Fields§
§id: String§name: String§kind: String“Mesh” | “Light” | “Camera” | “Particle” | “Trigger” | “Meshlet” | “GltfMesh”
position: [f32; 3]§rotation: [f32; 3]Euler rotation in degrees.
scale: [f32; 3]§parent_id: Option<String>§asset_ref: Option<String>Key into DreamSceneV1.asset_refs for external assets.
material: Option<MaterialDef>§primitive: Option<String>Built-in primitive: “Cube” | “Sphere” | “Cylinder” | “Cone” | “Torus” | “Capsule” | “Plane”
properties: HashMap<String, Value>Arbitrary key-value properties for extensibility.
Trait Implementations§
Source§impl Clone for SceneObject
impl Clone for SceneObject
Source§fn clone(&self) -> SceneObject
fn clone(&self) -> SceneObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneObject
impl Debug for SceneObject
Source§impl<'de> Deserialize<'de> for SceneObject
impl<'de> Deserialize<'de> for SceneObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SceneObject
impl RefUnwindSafe for SceneObject
impl Send for SceneObject
impl Sync for SceneObject
impl Unpin for SceneObject
impl UnsafeUnpin for SceneObject
impl UnwindSafe for SceneObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more