Skip to main content

IBakerMuscleMethods

Trait IBakerMuscleMethods 

Source
pub trait IBakerMuscleMethods: IBakerMuscle {
    // Provided methods
    fn ctor(self, muscle_index: impl Into<i32>) { ... }
    fn muscle_name_to_property_name(
        self,
        n: impl Into<Il2CppString>,
    ) -> Il2CppString { ... }
    fn multiply_length(
        self,
        curve: impl Into<AnimationCurve>,
        mlp: impl Into<f32>,
    ) { ... }
    fn set_curves(
        self,
        max_error: impl Into<f32>,
        length_mlp: impl Into<f32>,
    ) -> AnimationClip { ... }
    fn reset(self) { ... }
    fn set_keyframe(self, time: impl Into<f32>, muscles: impl Into<Array<f32>>) { ... }
    fn set_loop_frame(self, time: impl Into<f32>) { ... }
}

Provided Methods§

Source

fn ctor(self, muscle_index: impl Into<i32>)

.ctor(i32) overload

Source

fn muscle_name_to_property_name( self, n: impl Into<Il2CppString>, ) -> Il2CppString

MuscleNameToPropertyName(::unity::Il2CppString) overload

Source

fn multiply_length(self, curve: impl Into<AnimationCurve>, mlp: impl Into<f32>)

MultiplyLength(crate::unity_engine::animationcurve::AnimationCurve, f32) overload

Source

fn set_curves( self, max_error: impl Into<f32>, length_mlp: impl Into<f32>, ) -> AnimationClip

SetCurves(*mutcrate::unity_engine::animationclip::AnimationClip, f32, f32) overload

Source

fn reset(self)

Reset() overload

Source

fn set_keyframe(self, time: impl Into<f32>, muscles: impl Into<Array<f32>>)

SetKeyframe(f32, ::unity::Array<f32>) overload

Source

fn set_loop_frame(self, time: impl Into<f32>)

SetLoopFrame(f32) 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: IBakerMuscle> IBakerMuscleMethods for __T

Available on crate feature root_motion-bakermuscle only.