--- title: "Astra.AnimationCurve" version: snapshot-2026-10-06 engineGeneration: astra-current language: C# status: semantic-reference runtimeVerified: false platformEvidence: [] url: https://astraengine.com.br/pt-br/snapshot-2026-10-06/api/astra-animationcurve/ --- # 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. **Namespace:** `Astra` · **Assembly:** `Astra.Scripting` · **Tipo:** Class :::note[Sobre esta referência] Assinaturas extraídas semanticamente com Roslyn/MSBuild. Isso confirma a superfície do código deste snapshot; não comprova execução no Android. As descrições vêm dos comentários da API. Membros sem explicação ainda exigem revisão editorial. ::: ## Declaração ```csharp 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. ## Membros | Membro | Categoria | |---|---| | [Constant](#member-a36fb986e630b720) | Method | | [Evaluate](#member-3e421f4685a90578) | Method | | [Linear](#member-9147386e9b99e35a) | Method | | [Keys](#member-7db1b7f871c10454) | Property | | [Length](#member-ae4e01672c5cf43a) | Property | | [PostWrapMode](#member-31cc0566b2fd2bb3) | Property | | [PreWrapMode](#member-8344d94de7f46593) | Property |

Constant

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

Evaluate

```csharp public float Evaluate(float time) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `time` | `float` | |

Linear

```csharp 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

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

Length

```csharp public int Length { get; } ```

PostWrapMode

```csharp public Astra.CurveWrapMode PostWrapMode { get; set; } ```

PreWrapMode

```csharp public Astra.CurveWrapMode PreWrapMode { get; set; } ```