Skip to main content

IMapStateMachineMethods

Trait IMapStateMachineMethods 

Source
pub trait IMapStateMachineMethods: IMapStateMachine {
    // Provided methods
    fn on_state_enter(
        self,
        animator: impl Into<Animator>,
        state_info: impl Into<AnimatorStateInfo>,
        layer_index: impl Into<i32>,
        controller: impl Into<AnimatorControllerPlayable>,
    ) { ... }
    fn on_state_exit(
        self,
        animator: impl Into<Animator>,
        animator_state_info: impl Into<AnimatorStateInfo>,
        layer_index: impl Into<i32>,
    ) { ... }
    fn on_state_update(
        self,
        animator: impl Into<Animator>,
        state_info: impl Into<AnimatorStateInfo>,
        layer_index: impl Into<i32>,
    ) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn on_state_enter( self, animator: impl Into<Animator>, state_info: impl Into<AnimatorStateInfo>, layer_index: impl Into<i32>, controller: impl Into<AnimatorControllerPlayable>, )

OnStateEnter(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32, crate::unity_engine::animations::animatorcontrollerplayable::AnimatorControllerPlayable) overload

Source

fn on_state_exit( self, animator: impl Into<Animator>, animator_state_info: impl Into<AnimatorStateInfo>, layer_index: impl Into<i32>, )

OnStateExit(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32) overload

Source

fn on_state_update( self, animator: impl Into<Animator>, state_info: impl Into<AnimatorStateInfo>, layer_index: impl Into<i32>, )

OnStateUpdate(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32) overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IMapStateMachine> IMapStateMachineMethods for __T

Available on crate feature root-mapstatemachine only.