/// Creates an animation component using an AnimationSchema reference
Creates an animation component using an AnimationSchema reference
Creates an animation component using an AnimationSchema reference
fn from(schema: Option<Arc<AnimationSchema>>) -> Self {
        // Try to spawn a new Option-wrapped Arc
        let idle_anim = match schema {
            Some(anim) => Some(anim.clone()),
            None => None,
        };
        Self {
            frame: 0,
            frame_progress: 0.0,
            is_reversing: false,
            schema: idle_anim,
        }
    }
fn from ( schema : Option < Arc < AnimationSchema > > ) -> Self { // Try to spawn a new Option-wrapped Arc let idle_anim = match schema { Some ( anim ) => Some ( anim . clone ( ) ) , None => None , } ; Self { frame : 0 , frame_progress : 0.0 , is_reversing : false , schema : idle_anim , } }
Creates an animation component using an AnimationSchema reference
Creates an animation component using an AnimationSchema reference
schema
Option<Arc<AnimationSchema>>