Skip to main content

IAnimationCurveMethods

Trait IAnimationCurveMethods 

Source
pub trait IAnimationCurveMethods: IAnimationCurve {
Show 24 methods // Provided methods fn internal_equals(self, other: impl Into<IntPtr>) -> bool { ... } fn finalize(self) { ... } fn evaluate(self, time: impl Into<f32>) -> f32 { ... } fn get_keys(self) -> Array<Keyframe> { ... } fn set_keys(self, value: impl Into<Array<Keyframe>>) { ... } fn add_key(self, time: impl Into<f32>, value: impl Into<f32>) -> i32 { ... } fn add_key_2(self, key: impl Into<Keyframe>) -> i32 { ... } fn add_key_internal(self, key: impl Into<Keyframe>) -> i32 { ... } fn move_key(self, index: impl Into<i32>, key: impl Into<Keyframe>) -> i32 { ... } fn remove_key(self, index: impl Into<i32>) { ... } fn get_item(self, index: impl Into<i32>) -> Keyframe { ... } fn get_length(self) -> i32 { ... } fn get_key(self, index: impl Into<i32>) -> Keyframe { ... } fn smooth_tangents(self, index: impl Into<i32>, weight: impl Into<f32>) { ... } fn set_pre_wrap_mode(self, value: impl Into<WrapMode>) { ... } fn set_post_wrap_mode(self, value: impl Into<WrapMode>) { ... } fn ctor(self, keys: impl Into<Array<Keyframe>>) { ... } fn ctor_2(self) { ... } fn equals(self, o: impl Into<Object>) -> bool { ... } fn equals_2(self, other: impl Into<AnimationCurve>) -> bool { ... } fn get_hash_code(self) -> i32 { ... } fn add_key_internal_injected(self) -> (i32, Keyframe) { ... } fn move_key_injected(self, index: impl Into<i32>) -> (i32, Keyframe) { ... } fn get_key_injected(self, index: impl Into<i32>) -> Keyframe { ... }
}

Provided Methods§

Source

fn internal_equals(self, other: impl Into<IntPtr>) -> bool

Internal_Equals(::unity::IntPtr) overload

Source

fn finalize(self)

Finalize() overload

Source

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

Evaluate(f32) overload

Source

fn get_keys(self) -> Array<Keyframe>

get_keys() overload

Source

fn set_keys(self, value: impl Into<Array<Keyframe>>)

set_keys(::unity::Array<crate::unity_engine::keyframe::Keyframe>) overload

Source

fn add_key(self, time: impl Into<f32>, value: impl Into<f32>) -> i32

AddKey(f32, f32) overload

Source

fn add_key_2(self, key: impl Into<Keyframe>) -> i32

AddKey(crate::unity_engine::keyframe::Keyframe) overload

Source

fn add_key_internal(self, key: impl Into<Keyframe>) -> i32

AddKey_Internal(crate::unity_engine::keyframe::Keyframe) overload

Source

fn move_key(self, index: impl Into<i32>, key: impl Into<Keyframe>) -> i32

MoveKey(i32, crate::unity_engine::keyframe::Keyframe) overload

Source

fn remove_key(self, index: impl Into<i32>)

RemoveKey(i32) overload

Source

fn get_item(self, index: impl Into<i32>) -> Keyframe

get_Item(i32) overload

Source

fn get_length(self) -> i32

get_length() overload

Source

fn get_key(self, index: impl Into<i32>) -> Keyframe

GetKey(i32) overload

Source

fn smooth_tangents(self, index: impl Into<i32>, weight: impl Into<f32>)

SmoothTangents(i32, f32) overload

Source

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

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

Source

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

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

Source

fn ctor(self, keys: impl Into<Array<Keyframe>>)

.ctor(::unity::Array<crate::unity_engine::keyframe::Keyframe>) overload

Source

fn ctor_2(self)

.ctor() overload

Source

fn equals(self, o: impl Into<Object>) -> bool

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

Source

fn equals_2(self, other: impl Into<AnimationCurve>) -> bool

Equals(crate::unity_engine::animationcurve::AnimationCurve) overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn add_key_internal_injected(self) -> (i32, Keyframe)

AddKey_Internal_Injected(*mutcrate::unity_engine::keyframe::Keyframe) overload

Source

fn move_key_injected(self, index: impl Into<i32>) -> (i32, Keyframe)

MoveKey_Injected(i32, *mutcrate::unity_engine::keyframe::Keyframe) overload

Source

fn get_key_injected(self, index: impl Into<i32>) -> Keyframe

GetKey_Injected(i32, *mutcrate::unity_engine::keyframe::Keyframe) 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: IAnimationCurve> IAnimationCurveMethods for __T

Available on crate feature unity_engine-animationcurve only.