Skip to main content

IPlayableAssetMethods

Trait IPlayableAssetMethods 

Source
pub trait IPlayableAssetMethods: IPlayableAsset {
    // Provided methods
    fn create_playable(
        self,
        graph: impl Into<PlayableGraph>,
        owner: impl Into<GameObject>,
    ) -> Playable { ... }
    fn get_duration(self) -> f64 { ... }
    fn get_outputs(self) -> IEnumerable_1<PlayableBinding> { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn create_playable( self, graph: impl Into<PlayableGraph>, owner: impl Into<GameObject>, ) -> Playable

CreatePlayable(crate::unity_engine::playables::playablegraph::PlayableGraph, crate::unity_engine::gameobject::GameObject) overload

Source

fn get_duration(self) -> f64

get_duration() overload

Source

fn get_outputs(self) -> IEnumerable_1<PlayableBinding>

get_outputs() 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: IPlayableAsset> IPlayableAssetMethods for __T

Available on crate feature unity_engine-playables-playableasset only.