pub struct AnimationParam {
pub name: String,
pub default: f32,
}Expand description
A named float parameter driving a graph’s transitions. Gameplay systems
(or the anim-param debug command) write parameter values at runtime;
transitions compare against them. Flag-like parameters use 0 and 1.
Fields§
§name: StringParameter name, referenced by transition conditions.
default: f32Initial value at world start.
Trait Implementations§
Source§impl Clone for AnimationParam
impl Clone for AnimationParam
Source§fn clone(&self) -> AnimationParam
fn clone(&self) -> AnimationParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnimationParam
impl Debug for AnimationParam
Source§impl Default for AnimationParam
impl Default for AnimationParam
Source§fn default() -> AnimationParam
fn default() -> AnimationParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnimationParamwhere
AnimationParam: Default,
impl<'de> Deserialize<'de> for AnimationParamwhere
AnimationParam: Default,
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 AnimationParam
impl RefUnwindSafe for AnimationParam
impl Send for AnimationParam
impl Sync for AnimationParam
impl Unpin for AnimationParam
impl UnsafeUnpin for AnimationParam
impl UnwindSafe for AnimationParam
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