Skip to main content

IBakerTransformMethods

Trait IBakerTransformMethods 

Source
pub trait IBakerTransformMethods: IBakerTransform {
    // Provided methods
    fn ctor(
        self,
        transform: impl Into<Transform>,
        root: impl Into<Transform>,
        record_position: impl Into<bool>,
        is_root_node: impl Into<bool>,
    ) { ... }
    fn set_relative_space(
        self,
        position: impl Into<Vector3>,
        rotation: impl Into<Quaternion>,
    ) { ... }
    fn set_curves(self) -> AnimationClip { ... }
    fn add_root_motion_curves(self) -> AnimationClip { ... }
    fn reset(self) { ... }
    fn reduce_keyframes(self, max_error: impl Into<f32>) { ... }
    fn set_keyframes(self, time: impl Into<f32>) { ... }
    fn add_loop_frame(self, time: impl Into<f32>) { ... }
}

Provided Methods§

Source

fn ctor( self, transform: impl Into<Transform>, root: impl Into<Transform>, record_position: impl Into<bool>, is_root_node: impl Into<bool>, )

.ctor(crate::unity_engine::transform::Transform, crate::unity_engine::transform::Transform, bool, bool) overload

Source

fn set_relative_space( self, position: impl Into<Vector3>, rotation: impl Into<Quaternion>, )

SetRelativeSpace(crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion) overload

Source

fn set_curves(self) -> AnimationClip

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

Source

fn add_root_motion_curves(self) -> AnimationClip

AddRootMotionCurves(*mutcrate::unity_engine::animationclip::AnimationClip) overload

Source

fn reset(self)

Reset() overload

Source

fn reduce_keyframes(self, max_error: impl Into<f32>)

ReduceKeyframes(f32) overload

Source

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

SetKeyframes(f32) overload

Source

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

AddLoopFrame(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: IBakerTransform> IBakerTransformMethods for __T

Available on crate feature root_motion-bakertransform only.