Pular para o conteúdo
AstraDOCS

Astra.AnimationCurve

Astra atual · C# · 06 out. 2026Referência de assinaturas

Curva de valores (Unity: AnimationCurve), editada no Inspector pelo editor de curvas. Astra.AnimationCurve.Evaluate(System.Single) segue a mesma regra do editor: Hermite entre chaves, Constant segura o valor, Clamp/Loop/PingPong fora.

Namespace: Astra · Assembly: Astra.Scripting · Tipo: Class

class Astra.AnimationCurve

Curva de valores (Unity: AnimationCurve), editada no Inspector pelo editor de curvas. Astra.AnimationCurve.Evaluate(System.Single) segue a mesma regra do editor: Hermite entre chaves, Constant segura o valor, Clamp/Loop/PingPong fora.

Membro Categoria
Constant Method
Evaluate Method
Linear Method
Keys Property
Length Property
PostWrapMode Property
PreWrapMode Property

Constant

public static Astra.AnimationCurve Constant(float timeStart, float timeEnd, float value)
Parâmetro Tipo Contrato
timeStart float
timeEnd float
value float

Evaluate

public float Evaluate(float time)
Parâmetro Tipo Contrato
time float

Linear

public static Astra.AnimationCurve Linear(float timeStart, float valueStart, float timeEnd, float valueEnd)
Parâmetro Tipo Contrato
timeStart float
valueStart float
timeEnd float
valueEnd float

Keys

public Astra.Keyframe[] Keys { get; set; }

Length

public int Length { get; }

PostWrapMode

public Astra.CurveWrapMode PostWrapMode { get; set; }

PreWrapMode

public Astra.CurveWrapMode PreWrapMode { get; set; }