Class TextureCurve
Syntax
[Serializable]
public class TextureCurve : IDisposable
Constructors
TextureCurve(AnimationCurve, Single, Boolean, Vector2)
Declaration
public TextureCurve(AnimationCurve baseCurve, float zeroValue, bool loop, in Vector2 bounds)
Parameters
Type |
Name |
Description |
AnimationCurve |
baseCurve |
|
Single |
zeroValue |
|
Boolean |
loop |
|
Vector2 |
bounds |
|
TextureCurve(Keyframe[], Single, Boolean, Vector2)
Declaration
public TextureCurve(Keyframe[] keys, float zeroValue, bool loop, in Vector2 bounds)
Parameters
Type |
Name |
Description |
Keyframe[] |
keys |
|
Single |
zeroValue |
|
Boolean |
loop |
|
Vector2 |
bounds |
|
Properties
Item[Int32]
Declaration
public Keyframe this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Type |
Description |
Keyframe |
|
length
Declaration
public int length { get; }
Property Value
Methods
AddKey(Single, Single)
Declaration
public int AddKey(float time, float value)
Parameters
Returns
Dispose()
Declaration
Evaluate(Single)
Declaration
public float Evaluate(float time)
Parameters
Type |
Name |
Description |
Single |
time |
|
Returns
Finalize()
Declaration
protected void Finalize()
GetTexture()
Declaration
public Texture2D GetTexture()
Returns
Type |
Description |
Texture2D |
|
MoveKey(Int32, Keyframe)
Declaration
public int MoveKey(int index, in Keyframe key)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Keyframe |
key |
|
Returns
RemoveKey(Int32)
Declaration
public void RemoveKey(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
SetDirty()
Declaration
SmoothTangents(Int32, Single)
Declaration
public void SmoothTangents(int index, float weight)
Parameters