Skip to main content

IPlayableBehaviourMethods

Trait IPlayableBehaviourMethods 

Source
pub trait IPlayableBehaviourMethods: IPlayableBehaviour {
    // Provided methods
    fn ctor(self) { ... }
    fn on_graph_start(self, playable: impl Into<Playable>) { ... }
    fn on_graph_stop(self, playable: impl Into<Playable>) { ... }
    fn on_playable_create(self, playable: impl Into<Playable>) { ... }
    fn on_playable_destroy(self, playable: impl Into<Playable>) { ... }
    fn on_behaviour_play(
        self,
        playable: impl Into<Playable>,
        info: impl Into<FrameData>,
    ) { ... }
    fn on_behaviour_pause(
        self,
        playable: impl Into<Playable>,
        info: impl Into<FrameData>,
    ) { ... }
    fn prepare_frame(
        self,
        playable: impl Into<Playable>,
        info: impl Into<FrameData>,
    ) { ... }
    fn process_frame(
        self,
        playable: impl Into<Playable>,
        info: impl Into<FrameData>,
        player_data: impl Into<Object>,
    ) { ... }
    fn clone(self) -> Object { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn on_graph_start(self, playable: impl Into<Playable>)

OnGraphStart(crate::unity_engine::playables::playable::Playable) overload

Source

fn on_graph_stop(self, playable: impl Into<Playable>)

OnGraphStop(crate::unity_engine::playables::playable::Playable) overload

Source

fn on_playable_create(self, playable: impl Into<Playable>)

OnPlayableCreate(crate::unity_engine::playables::playable::Playable) overload

Source

fn on_playable_destroy(self, playable: impl Into<Playable>)

OnPlayableDestroy(crate::unity_engine::playables::playable::Playable) overload

Source

fn on_behaviour_play( self, playable: impl Into<Playable>, info: impl Into<FrameData>, )

OnBehaviourPlay(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData) overload

Source

fn on_behaviour_pause( self, playable: impl Into<Playable>, info: impl Into<FrameData>, )

OnBehaviourPause(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData) overload

Source

fn prepare_frame( self, playable: impl Into<Playable>, info: impl Into<FrameData>, )

PrepareFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData) overload

Source

fn process_frame( self, playable: impl Into<Playable>, info: impl Into<FrameData>, player_data: impl Into<Object>, )

ProcessFrame(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::framedata::FrameData, crate::system::object::Object) overload

Source

fn clone(self) -> Object

Clone() 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: IPlayableBehaviour> IPlayableBehaviourMethods for __T

Available on crate feature unity_engine-playables-playablebehaviour only.