pub struct Object {Show 25 fields
pub id: Option<Id>,
pub name: String,
pub mesh: Option<String>,
pub prefab: Option<String>,
pub at: [f32; 3],
pub rotate: [f32; 3],
pub scale: Option<Scale>,
pub parent: Option<String>,
pub material: Option<String>,
pub materials: BTreeMap<String, String>,
pub shadow: Option<Shadow>,
pub two_sided: bool,
pub hidden: bool,
pub clip: Vec<[f32; 4]>,
pub content: Option<String>,
pub pick: Option<u32>,
pub alpha_cutoff: Option<f32>,
pub face_camera: bool,
pub dynamic: Option<bool>,
pub body: Option<Body>,
pub character: Option<Character>,
pub trigger: Option<Trigger>,
pub animation: Option<Animation>,
pub set: BTreeMap<String, Value>,
pub authoring: Option<Value>,
}Fields§
§id: Option<Id>§name: String§mesh: Option<String>§prefab: Option<String>§at: [f32; 3]§rotate: [f32; 3]§scale: Option<Scale>§parent: Option<String>§material: Option<String>§materials: BTreeMap<String, String>§shadow: Option<Shadow>§two_sided: bool§clip: Vec<[f32; 4]>§content: Option<String>§pick: Option<u32>§alpha_cutoff: Option<f32>§face_camera: bool§dynamic: Option<bool>§body: Option<Body>§character: Option<Character>§trigger: Option<Trigger>§animation: Option<Animation>§set: BTreeMap<String, Value>Implementations§
Source§impl Object
impl Object
pub const ALPHA_CUTOFF: f32 = 0.5
pub fn is_placement(&self) -> bool
pub fn scale_axes(&self) -> [f32; 3]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Object
impl<'de> Deserialize<'de> for Object
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
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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