pub struct AnimationControllerDef {
pub name: String,
pub parameters: Vec<String>,
pub states: Vec<AnimationStateDef>,
pub initial_state: String,
}
Expand description
Definition struct for an AnimationController, which can be deserialized from JSON and converted to an AnimationController instance at runtime
Fields
name: String
Identifying name for the controller definition
parameters: Vec<String>
Declaration list of all parameters that are used by the AnimationController, including state transition conditions and blend tree parameters
states: Vec<AnimationStateDef>
List of animation state definitions
initial_state: String
The name of the state that the AnimationController should start in
Trait Implementations
sourceimpl Clone for AnimationControllerDef
impl Clone for AnimationControllerDef
sourcefn clone(&self) -> AnimationControllerDef
fn clone(&self) -> AnimationControllerDef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AnimationControllerDef
impl Debug for AnimationControllerDef
sourceimpl Decodable for AnimationControllerDef
impl Decodable for AnimationControllerDef
Auto Trait Implementations
impl RefUnwindSafe for AnimationControllerDef
impl Send for AnimationControllerDef
impl Sync for AnimationControllerDef
impl Unpin for AnimationControllerDef
impl UnwindSafe for AnimationControllerDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more