pub struct Animator {
pub animator: ObjRef,
pub game_object: i64,
pub path: String,
pub controller: Option<ObjRef>,
pub avatar: Option<ObjRef>,
pub enabled: bool,
pub apply_root_motion: bool,
}Expand description
An Animator component: the GameObject it animates (its Transform is the root of the paths its clips name), the
controller that lists its clips and its avatar; a null pointer is None.
Fields§
§animator: ObjRefThe Animator object.
game_object: i64The path id of the GameObject it animates.
path: StringThat GameObject’s path from the scene root, names joined by /.
controller: Option<ObjRef>m_Controller.
avatar: Option<ObjRef>m_Avatar.
enabled: boolm_Enabled (true when the Animator does not store one).
apply_root_motion: boolm_ApplyRootMotion.
Trait Implementations§
impl StructuralPartialEq for Animator
Auto Trait Implementations§
impl Freeze for Animator
impl RefUnwindSafe for Animator
impl Send for Animator
impl Sync for Animator
impl Unpin for Animator
impl UnsafeUnpin for Animator
impl UnwindSafe for Animator
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