Skip to main content

FromObject

Trait FromObject 

Source
pub trait FromObject<'a>
where Self: Sized,
{ // Required method fn load(object: &'a Object<'a>) -> UnityResult<Self>; }

Required Methods§

Source

fn load(object: &'a Object<'a>) -> UnityResult<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a> FromObject<'a> for Sprite<'a>

Source§

impl<'a> FromObject<'a> for TextAsset

Source§

impl<'a> FromObject<'a> for Texture2D