Method AddKey
AddKey(float, float)
Adds a new key to the curve.
Declaration
public int AddKey(float time, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | time | The time at which to add the key. |
| float | value | The value for the key. |
Returns
| Type | Description |
|---|---|
| int | The index of the added key, or -1 if the key could not be added. |