C# Class UnityEngine.AnimationCurve

Inheritance: Object
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Add a new key to the curve.

public AddKey ( Keyframe key ) : int
key Keyframe The key to add to the curve.
Résultat int

AnimationCurve() public méthode

Creates an animation curve from an arbitrary number of keyframes.

public AnimationCurve ( ) : System
Résultat System

EaseInOut() public static méthode

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.
Résultat AnimationCurve

Linear() public static méthode

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.
Résultat AnimationCurve

MoveKey() public méthode

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.
Résultat int

this() public méthode

public this ( int index ) : Keyframe
index int
Résultat Keyframe