Class AnimationCurve
Inheritance
AnimationCurve
Assembly: UnityEngine.dll
Syntax
public class AnimationCurve : IEquatable<AnimationCurve>
Constructors
|
Improve this Doc
View Source
AnimationCurve()
Declaration
|
Improve this Doc
View Source
AnimationCurve(Keyframe[])
Declaration
public AnimationCurve(params Keyframe[] keys)
Parameters
Properties
|
Improve this Doc
View Source
Item[Int32]
Declaration
public Keyframe this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
keys
Declaration
public Keyframe[] keys { get; set; }
Property Value
length
Declaration
public int length { get; }
Property Value
postWrapMode
Declaration
public WrapMode postWrapMode { get; set; }
Property Value
preWrapMode
Declaration
public WrapMode preWrapMode { get; set; }
Property Value
Methods
AddKey(Single, Single)
Declaration
public int AddKey(float time, float value)
Parameters
Returns
|
Improve this Doc
View Source
AddKey(Keyframe)
Declaration
public int AddKey(Keyframe key)
Parameters
Returns
|
Improve this Doc
View Source
Constant(Single, Single, Single)
Declaration
public static AnimationCurve Constant(float timeStart, float timeEnd, float value)
Parameters
Returns
|
Improve this Doc
View Source
EaseInOut(Single, Single, Single, Single)
Declaration
public static AnimationCurve EaseInOut(float timeStart, float valueStart, float timeEnd, float valueEnd)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(AnimationCurve)
Declaration
public bool Equals(AnimationCurve other)
Parameters
Returns
Evaluate(Single)
Declaration
public float Evaluate(float time)
Parameters
Type |
Name |
Description |
Single |
time |
|
Returns
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Linear(Single, Single, Single, Single)
Declaration
public static AnimationCurve Linear(float timeStart, float valueStart, float timeEnd, float valueEnd)
Parameters
Returns
MoveKey(Int32, Keyframe)
Declaration
public int MoveKey(int index, Keyframe key)
Parameters
Returns
RemoveKey(Int32)
Declaration
public void RemoveKey(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
SmoothTangents(Int32, Single)
Declaration
public void SmoothTangents(int index, float weight)
Parameters
Implements
Extension Methods