Skip to main content

ITextureCurveMethods

Trait ITextureCurveMethods 

Source
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§

Source

fn get_length(self) -> i32

get_length() overload

Source

fn set_length(self, value: impl Into<i32>)

set_length(i32) overload

Source

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

get_Item(i32) overload

Source

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

Source

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

Source

fn finalize(self)

Finalize() overload

Source

fn dispose(self)

Dispose() overload

Source

fn release(self)

Release() overload

Source

fn set_dirty(self)

SetDirty() overload

Source

fn get_texture(self) -> Texture2D

GetTexture() overload

Source

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

Evaluate(f32) overload

Source

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

AddKey(f32, f32) overload

Source

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

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

Source

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

RemoveKey(i32) overload

Source

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§

Source§

impl<__T: ITextureCurve> ITextureCurveMethods for __T

Available on crate feature unity_engine-rendering-texturecurve only.