Pular para o conteúdo
AstraDOCS

Astra.GuiAnimation

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

One authored pose transition. Stop restores layout; completion holds the final pose. PingPong runs both directions; Loop repeats after the one-time Delay. Children inherit pose.

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

readonly record struct Astra.GuiAnimation

One authored pose transition. Stop restores layout; completion holds the final pose. PingPong runs both directions; Loop repeats after the one-time Delay. Children inherit pose.

Interfaces: System.IEquatable<Astra.GuiAnimation>.

Membro Categoria
.ctor Method
AutoPlay Property
Default Property
Delay Property
Duration Property
Easing Property
Enabled Property
From Property
Loop Property
PingPong Property
To Property

.ctor

public GuiAnimation(bool Enabled, bool AutoPlay, bool Loop, bool PingPong, Astra.GuiEasing Easing, float Duration, float Delay, Astra.GuiPose From, Astra.GuiPose To)

One authored pose transition. Stop restores layout; completion holds the final pose. PingPong runs both directions; Loop repeats after the one-time Delay. Children inherit pose.

Parâmetro Tipo Contrato
Enabled bool
AutoPlay bool
Loop bool
PingPong bool
Easing Astra.GuiEasing
Duration float
Delay float
From Astra.GuiPose
To Astra.GuiPose

AutoPlay

public bool AutoPlay { get; init; }

Default

public static Astra.GuiAnimation Default { get; }

Delay

public float Delay { get; init; }

Duration

public float Duration { get; init; }

Easing

public Astra.GuiEasing Easing { get; init; }

Enabled

public bool Enabled { get; init; }

From

public Astra.GuiPose From { get; init; }

Loop

public bool Loop { get; init; }

PingPong

public bool PingPong { get; init; }

To

public Astra.GuiPose To { get; init; }