pub struct ChildMotion {
pub m_CycleOffset: f32,
pub m_DirectBlendParameter: String,
pub m_Mirror: bool,
pub m_Motion: PPtr,
pub m_Position: Vector2f,
pub m_Threshold: f32,
pub m_TimeScale: f32,
}
Expand description
ChildMotion is a sub class of the Unity engine since version 5.0.0f4. Exert from Unity’s scripting documentation: Structure that represents a motion in the context of its parent blend tree.
Fields§
§m_CycleOffset: f32
Normalized time offset of the child.
m_DirectBlendParameter: String
The parameter used by the child when used in a BlendTree of type BlendTreeType.Direct.
m_Mirror: bool
Mirror of the child.
m_Motion: PPtr
The motion itself.
PPtr<[Motion
]>: (5.0.0f4 - 2022.3.2f1)
m_Position: Vector2f
The position of the child. Used in 2D blend trees.
m_Threshold: f32
The threshold of the child. Used in 1D blend trees.
m_TimeScale: f32
The relative speed of the child.
Trait Implementations§
Source§impl Debug for ChildMotion
impl Debug for ChildMotion
Source§impl<'de> Deserialize<'de> for ChildMotion
impl<'de> Deserialize<'de> for ChildMotion
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 ChildMotion
impl RefUnwindSafe for ChildMotion
impl Send for ChildMotion
impl Sync for ChildMotion
impl Unpin for ChildMotion
impl UnwindSafe for ChildMotion
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