C# Класс UnityEngine.AnimationCurve

Наследование: Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddKey ( Keyframe key ) : int

Add a new key to the curve.

AnimationCurve ( ) : System

Creates an animation curve from an arbitrary number of keyframes.

EaseInOut ( float timeStart, float valueStart, float timeEnd, float valueEnd ) : AnimationCurve

Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.

Linear ( float timeStart, float valueStart, float timeEnd, float valueEnd ) : AnimationCurve

A straight Line starting at timeStart, valueStart and ending at timeEnd, valueEnd.

MoveKey ( int index, Keyframe key ) : int

Removes the keyframe at index and inserts key.

this ( int index ) : Keyframe

Приватные методы

Метод Описание
AddKey ( float time, float value ) : int
AddKey_Internal ( Keyframe key ) : int
Cleanup ( ) : void
Evaluate ( float time ) : float
GetKey_Internal ( int index ) : Keyframe
GetKeys ( ) : UnityEngine.Keyframe[]
INTERNAL_CALL_AddKey_Internal ( AnimationCurve self, Keyframe &key ) : int
INTERNAL_CALL_GetKey_Internal ( AnimationCurve self, int index, Keyframe &value ) : void
INTERNAL_CALL_MoveKey ( AnimationCurve self, int index, Keyframe &key ) : int
Init ( Keyframe keys ) : void
RemoveKey ( int index ) : void
SetKeys ( Keyframe keys ) : void
SmoothTangents ( int index, float weight ) : void

Описание методов

AddKey() публичный Метод

Add a new key to the curve.

public AddKey ( Keyframe key ) : int
key Keyframe The key to add to the curve.
Результат int

AnimationCurve() публичный Метод

Creates an animation curve from an arbitrary number of keyframes.

public AnimationCurve ( ) : System
Результат System

EaseInOut() публичный статический Метод

Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.

public static EaseInOut ( float timeStart, float valueStart, float timeEnd, float valueEnd ) : AnimationCurve
timeStart float The start time for the ease curve.
valueStart float The start value for the ease curve.
timeEnd float The end time for the ease curve.
valueEnd float The end value for the ease curve.
Результат AnimationCurve

Linear() публичный статический Метод

A straight Line starting at timeStart, valueStart and ending at timeEnd, valueEnd.

public static Linear ( float timeStart, float valueStart, float timeEnd, float valueEnd ) : AnimationCurve
timeStart float The start time for the linear curve.
valueStart float The start value for the linear curve.
timeEnd float The end time for the linear curve.
valueEnd float The end value for the linear curve.
Результат AnimationCurve

MoveKey() публичный Метод

Removes the keyframe at index and inserts key.

public MoveKey ( int index, Keyframe key ) : int
index int The index of the key to move.
key Keyframe The key (with its new time) to insert.
Результат int

this() публичный Метод

public this ( int index ) : Keyframe
index int
Результат Keyframe