pub trait ITextureCurveMethods: ITextureCurve {
Show 15 methods
// Provided methods
fn get_length(self) -> i32 { ... }
fn set_length(self, value: impl Into<i32>) { ... }
fn get_item(self, index: impl Into<i32>) -> Keyframe { ... }
fn ctor(
self,
base_curve: impl Into<AnimationCurve>,
zero_value: impl Into<f32>,
loop: impl Into<bool>,
) -> Vector2 { ... }
fn ctor_2(
self,
keys: impl Into<Array<Keyframe>>,
zero_value: impl Into<f32>,
loop: impl Into<bool>,
) -> Vector2 { ... }
fn finalize(self) { ... }
fn dispose(self) { ... }
fn release(self) { ... }
fn set_dirty(self) { ... }
fn get_texture(self) -> Texture2D { ... }
fn evaluate(self, time: impl Into<f32>) -> f32 { ... }
fn add_key(self, time: impl Into<f32>, value: impl Into<f32>) -> i32 { ... }
fn move_key(self, index: impl Into<i32>) -> (i32, Keyframe) { ... }
fn remove_key(self, index: impl Into<i32>) { ... }
fn smooth_tangents(self, index: impl Into<i32>, weight: impl Into<f32>) { ... }
}Provided Methods§
Sourcefn get_length(self) -> i32
fn get_length(self) -> i32
get_length() overload
Sourcefn set_length(self, value: impl Into<i32>)
fn set_length(self, value: impl Into<i32>)
set_length(i32) overload
Sourcefn ctor(
self,
base_curve: impl Into<AnimationCurve>,
zero_value: impl Into<f32>,
loop: impl Into<bool>,
) -> Vector2
fn ctor( self, base_curve: impl Into<AnimationCurve>, zero_value: impl Into<f32>, loop: impl Into<bool>, ) -> Vector2
.ctor(crate::unity_engine::animationcurve::AnimationCurve, f32, bool, *mutcrate::unity_engine::vector2::Vector2) overload
Sourcefn ctor_2(
self,
keys: impl Into<Array<Keyframe>>,
zero_value: impl Into<f32>,
loop: impl Into<bool>,
) -> Vector2
fn ctor_2( self, keys: impl Into<Array<Keyframe>>, zero_value: impl Into<f32>, loop: impl Into<bool>, ) -> Vector2
.ctor(::unity::Array<crate::unity_engine::keyframe::Keyframe>, f32, bool, *mutcrate::unity_engine::vector2::Vector2) overload
Sourcefn get_texture(self) -> Texture2D
fn get_texture(self) -> Texture2D
GetTexture() overload
Sourcefn move_key(self, index: impl Into<i32>) -> (i32, Keyframe)
fn move_key(self, index: impl Into<i32>) -> (i32, Keyframe)
MoveKey(i32, *mutcrate::unity_engine::keyframe::Keyframe) overload
Sourcefn remove_key(self, index: impl Into<i32>)
fn remove_key(self, index: impl Into<i32>)
RemoveKey(i32) overload
Sourcefn smooth_tangents(self, index: impl Into<i32>, weight: impl Into<f32>)
fn smooth_tangents(self, index: impl Into<i32>, weight: impl Into<f32>)
SmoothTangents(i32, 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§
impl<__T: ITextureCurve> ITextureCurveMethods for __T
Available on crate feature
unity_engine-rendering-texturecurve only.