Skip to main content

IAnimationClipMethods

Trait IAnimationClipMethods 

Source
pub trait IAnimationClipMethods: IAnimationClip {
Show 31 methods // Provided methods fn ctor(self) { ... } fn sample_animation(self, go: impl Into<GameObject>, time: impl Into<f32>) { ... } fn get_length(self) -> f32 { ... } fn get_start_time(self) -> f32 { ... } fn get_stop_time(self) -> f32 { ... } fn get_frame_rate(self) -> f32 { ... } fn set_frame_rate(self, value: impl Into<f32>) { ... } fn set_curve( self, relative_path: impl Into<Il2CppString>, type: impl Into<SystemType>, property_name: impl Into<Il2CppString>, curve: impl Into<AnimationCurve>, ) { ... } fn ensure_quaternion_continuity(self) { ... } fn clear_curves(self) { ... } fn get_wrap_mode(self) -> WrapMode { ... } fn set_wrap_mode(self, value: impl Into<WrapMode>) { ... } fn get_local_bounds(self) -> Bounds { ... } fn set_local_bounds(self, value: impl Into<Bounds>) { ... } fn get_legacy(self) -> bool { ... } fn set_legacy(self, value: impl Into<bool>) { ... } fn get_human_motion(self) -> bool { ... } fn get_empty(self) -> bool { ... } fn get_has_generic_root_transform(self) -> bool { ... } fn get_has_motion_float_curves(self) -> bool { ... } fn get_has_motion_curves(self) -> bool { ... } fn get_has_root_curves(self) -> bool { ... } fn get_has_root_motion(self) -> bool { ... } fn add_event(self, evt: impl Into<AnimationEvent>) { ... } fn add_event_internal(self, evt: impl Into<Object>) { ... } fn get_events(self) -> Array<AnimationEvent> { ... } fn set_events(self, value: impl Into<Array<AnimationEvent>>) { ... } fn set_events_internal(self, value: impl Into<IlInstance>) { ... } fn get_events_internal(self) -> IlInstance { ... } fn get_local_bounds_injected(self) -> Bounds { ... } fn set_local_bounds_injected(self) -> Bounds { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn sample_animation(self, go: impl Into<GameObject>, time: impl Into<f32>)

SampleAnimation(crate::unity_engine::gameobject::GameObject, f32) overload

Source

fn get_length(self) -> f32

get_length() overload

Source

fn get_start_time(self) -> f32

get_startTime() overload

Source

fn get_stop_time(self) -> f32

get_stopTime() overload

Source

fn get_frame_rate(self) -> f32

get_frameRate() overload

Source

fn set_frame_rate(self, value: impl Into<f32>)

set_frameRate(f32) overload

Source

fn set_curve( self, relative_path: impl Into<Il2CppString>, type: impl Into<SystemType>, property_name: impl Into<Il2CppString>, curve: impl Into<AnimationCurve>, )

SetCurve(::unity::Il2CppString, ::unity::SystemType, ::unity::Il2CppString, crate::unity_engine::animationcurve::AnimationCurve) overload

Source

fn ensure_quaternion_continuity(self)

EnsureQuaternionContinuity() overload

Source

fn clear_curves(self)

ClearCurves() overload

Source

fn get_wrap_mode(self) -> WrapMode

get_wrapMode() overload

Source

fn set_wrap_mode(self, value: impl Into<WrapMode>)

set_wrapMode(crate::unity_engine::wrapmode::WrapMode) overload

Source

fn get_local_bounds(self) -> Bounds

get_localBounds() overload

Source

fn set_local_bounds(self, value: impl Into<Bounds>)

set_localBounds(crate::unity_engine::bounds::Bounds) overload

Source

fn get_legacy(self) -> bool

get_legacy() overload

Source

fn set_legacy(self, value: impl Into<bool>)

set_legacy(bool) overload

Source

fn get_human_motion(self) -> bool

get_humanMotion() overload

Source

fn get_empty(self) -> bool

get_empty() overload

Source

fn get_has_generic_root_transform(self) -> bool

get_hasGenericRootTransform() overload

Source

fn get_has_motion_float_curves(self) -> bool

get_hasMotionFloatCurves() overload

Source

fn get_has_motion_curves(self) -> bool

get_hasMotionCurves() overload

Source

fn get_has_root_curves(self) -> bool

get_hasRootCurves() overload

Source

fn get_has_root_motion(self) -> bool

get_hasRootMotion() overload

Source

fn add_event(self, evt: impl Into<AnimationEvent>)

AddEvent(crate::unity_engine::animationevent::AnimationEvent) overload

Source

fn add_event_internal(self, evt: impl Into<Object>)

AddEventInternal(crate::system::object::Object) overload

Source

fn get_events(self) -> Array<AnimationEvent>

get_events() overload

Source

fn set_events(self, value: impl Into<Array<AnimationEvent>>)

set_events(::unity::Array<crate::unity_engine::animationevent::AnimationEvent>) overload

Source

fn set_events_internal(self, value: impl Into<IlInstance>)

SetEventsInternal(::unity::IlInstance) overload

Source

fn get_events_internal(self) -> IlInstance

GetEventsInternal() overload

Source

fn get_local_bounds_injected(self) -> Bounds

get_localBounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload

Source

fn set_local_bounds_injected(self) -> Bounds

set_localBounds_Injected(*mutcrate::unity_engine::bounds::Bounds) 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: IAnimationClip> IAnimationClipMethods for __T

Available on crate feature unity_engine-animationclip only.