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§
Sourcefn sample_animation(self, go: impl Into<GameObject>, time: impl Into<f32>)
fn sample_animation(self, go: impl Into<GameObject>, time: impl Into<f32>)
SampleAnimation(crate::unity_engine::gameobject::GameObject, f32) overload
Sourcefn get_length(self) -> f32
fn get_length(self) -> f32
get_length() overload
Sourcefn get_start_time(self) -> f32
fn get_start_time(self) -> f32
get_startTime() overload
Sourcefn get_stop_time(self) -> f32
fn get_stop_time(self) -> f32
get_stopTime() overload
Sourcefn get_frame_rate(self) -> f32
fn get_frame_rate(self) -> f32
get_frameRate() overload
Sourcefn set_frame_rate(self, value: impl Into<f32>)
fn set_frame_rate(self, value: impl Into<f32>)
set_frameRate(f32) overload
Sourcefn set_curve(
self,
relative_path: impl Into<Il2CppString>,
type: impl Into<SystemType>,
property_name: impl Into<Il2CppString>,
curve: impl Into<AnimationCurve>,
)
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
Sourcefn ensure_quaternion_continuity(self)
fn ensure_quaternion_continuity(self)
EnsureQuaternionContinuity() overload
Sourcefn clear_curves(self)
fn clear_curves(self)
ClearCurves() overload
Sourcefn get_wrap_mode(self) -> WrapMode
fn get_wrap_mode(self) -> WrapMode
get_wrapMode() overload
Sourcefn set_wrap_mode(self, value: impl Into<WrapMode>)
fn set_wrap_mode(self, value: impl Into<WrapMode>)
set_wrapMode(crate::unity_engine::wrapmode::WrapMode) overload
Sourcefn get_local_bounds(self) -> Bounds
fn get_local_bounds(self) -> Bounds
get_localBounds() overload
Sourcefn set_local_bounds(self, value: impl Into<Bounds>)
fn set_local_bounds(self, value: impl Into<Bounds>)
set_localBounds(crate::unity_engine::bounds::Bounds) overload
Sourcefn get_legacy(self) -> bool
fn get_legacy(self) -> bool
get_legacy() overload
Sourcefn set_legacy(self, value: impl Into<bool>)
fn set_legacy(self, value: impl Into<bool>)
set_legacy(bool) overload
Sourcefn get_human_motion(self) -> bool
fn get_human_motion(self) -> bool
get_humanMotion() overload
Sourcefn get_has_generic_root_transform(self) -> bool
fn get_has_generic_root_transform(self) -> bool
get_hasGenericRootTransform() overload
Sourcefn get_has_motion_float_curves(self) -> bool
fn get_has_motion_float_curves(self) -> bool
get_hasMotionFloatCurves() overload
Sourcefn get_has_motion_curves(self) -> bool
fn get_has_motion_curves(self) -> bool
get_hasMotionCurves() overload
Sourcefn get_has_root_curves(self) -> bool
fn get_has_root_curves(self) -> bool
get_hasRootCurves() overload
Sourcefn get_has_root_motion(self) -> bool
fn get_has_root_motion(self) -> bool
get_hasRootMotion() overload
Sourcefn add_event(self, evt: impl Into<AnimationEvent>)
fn add_event(self, evt: impl Into<AnimationEvent>)
AddEvent(crate::unity_engine::animationevent::AnimationEvent) overload
Sourcefn add_event_internal(self, evt: impl Into<Object>)
fn add_event_internal(self, evt: impl Into<Object>)
AddEventInternal(crate::system::object::Object) overload
Sourcefn get_events(self) -> Array<AnimationEvent>
fn get_events(self) -> Array<AnimationEvent>
get_events() overload
Sourcefn set_events(self, value: impl Into<Array<AnimationEvent>>)
fn set_events(self, value: impl Into<Array<AnimationEvent>>)
set_events(::unity::Array<crate::unity_engine::animationevent::AnimationEvent>) overload
Sourcefn set_events_internal(self, value: impl Into<IlInstance>)
fn set_events_internal(self, value: impl Into<IlInstance>)
SetEventsInternal(::unity::IlInstance) overload
Sourcefn get_events_internal(self) -> IlInstance
fn get_events_internal(self) -> IlInstance
GetEventsInternal() overload
Sourcefn get_local_bounds_injected(self) -> Bounds
fn get_local_bounds_injected(self) -> Bounds
get_localBounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload
Sourcefn set_local_bounds_injected(self) -> Bounds
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§
impl<__T: IAnimationClip> IAnimationClipMethods for __T
unity_engine-animationclip only.