Version: 2017.2
public int AddKey (float time, float value);

Parámetros

time La hora a la que se agrega la key (eje horizontal en el gráfico de la curva).
value El valor para la key (ejes verticales en la gráfica de la curva)

Valor de retorno

int El indice de la key agregada, o -1 si la key no se pudo agregar.

Descripción

Agrega una nueva key a la curva.

Smooth tangents are automatically computed for the key. Returns the index of the added key. If no key could be added because there is already another keyframe at the same time -1 will be returned.

Mirar también: Variable keys.


public int AddKey (Keyframe key);

Parámetros

key La key para agregar a la curva.

Valor de retorno

int El indice de la key agregada, o -1 si la key no se pudo agregar.

Descripción

Agrega una nueva key a la curva.

Returns the index of the added key. If no key could be added because there is already another keyframe at the same time -1 will be returned.

Mirar también: Variable keys, struct Keyframe.