Pular para o conteúdo
AstraDOCS

Astra.GuiElement

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

Stable ID and world identity; removed nodes and previous Play handles are rejected.

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

readonly struct Astra.GuiElement

Stable ID and world identity; removed nodes and previous Play handles are rejected.

Membro Categoria
AddAction Method
MoveAction Method
MoveEarlier Method
MoveLater Method
OnClick Method
PlayAnimation Method
Remove Method
RemoveAction Method
ReplaceAction Method
SetText Method
StopAnimation Method
Actions Property
Animation Property
BaseImage Property
ControlSettings Property
Enabled Property
Id Property
Image Property
ImageStyle Property
Input Property
InputAction Property
InstanceId Property
Interaction Property
Kind Property
KnobImage Property
Layout Property
Name Property
Sizing Property
Snapshot Property
Style Property
Text Property
Transitions Property
Value Property
Visible Property

AddAction

public void AddAction(Astra.GuiEventKind @event, Astra.GuiClickAction action, Astra.GuiElement target = default(Astra.GuiElement), float value = 0)
Parâmetro Tipo Contrato
event Astra.GuiEventKind
action Astra.GuiClickAction
target Astra.GuiElement · Opcional: ``
value float · Opcional: 0

MoveAction

public void MoveAction(int index, int destination)
Parâmetro Tipo Contrato
index int
destination int

MoveEarlier

public void MoveEarlier()

MoveLater

public void MoveLater()

OnClick

public void OnClick(Astra.GuiClickAction action, Astra.GuiElement target = default(Astra.GuiElement), float value = 0)
Parâmetro Tipo Contrato
action Astra.GuiClickAction
target Astra.GuiElement · Opcional: ``
value float · Opcional: 0

PlayAnimation

public void PlayAnimation()

Remove

public void Remove()

RemoveAction

public void RemoveAction(int index)
Parâmetro Tipo Contrato
index int

ReplaceAction

public void ReplaceAction(int index, Astra.GuiActionBinding binding)
Parâmetro Tipo Contrato
index int
binding Astra.GuiActionBinding

SetText

public void SetText(string text)
Parâmetro Tipo Contrato
text string

StopAnimation

public void StopAnimation()

Actions

public Astra.GuiActionBinding[] Actions { get; }

Animation

public Astra.GuiAnimation Animation { get; set; }

BaseImage

public string BaseImage { get; set; }

ControlSettings

public Astra.GuiControlSettings ControlSettings { get; set; }

Enabled

public bool Enabled { get; set; }

Id

public uint Id { get; }

Image

public string Image { get; set; }

ImageStyle

public Astra.GuiImageStyle ImageStyle { get; set; }

Input

public Astra.GuiControlSnapshot Input { get; }

InputAction

public string InputAction { get; set; }

InstanceId

public ulong InstanceId { get; }

Interaction

public Astra.GuiInteraction Interaction { get; set; }

Kind

public Astra.GuiKind Kind { get; }

KnobImage

public string KnobImage { get; set; }

Layout

public Astra.GuiLayout Layout { get; set; }

Name

public string Name { get; set; }

Sizing

public Astra.GuiSizing Sizing { get; set; }

Snapshot

public Astra.GuiSnapshot Snapshot { get; }

Style

public Astra.GuiStyle Style { get; set; }

Text

public string Text { get; set; }

Transitions

public Astra.GuiTransitions Transitions { get; set; }

Value

public float Value { get; set; }

Visible

public bool Visible { get; set; }