C# Class UnityEngine.AnimationCurve

Inheritance: Object
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddKey() public method

Add a new key to the curve.

public AddKey ( Keyframe key ) : int
key Keyframe The key to add to the curve.
return int

AnimationCurve() public method

Creates an animation curve from an arbitrary number of keyframes.

public AnimationCurve ( ) : System
return System

EaseInOut() public static method

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.
return AnimationCurve

Linear() public static method

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.
return AnimationCurve

MoveKey() public method

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.
return int

this() public method

public this ( int index ) : Keyframe
index int
return Keyframe