--- title: "Astra.GuiElement" 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-guielement/ --- # Astra.GuiElement Stable ID and world identity; removed nodes and previous Play handles are rejected. **Namespace:** `Astra` · **Assembly:** `Astra.Scripting` · **Tipo:** Struct :::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 readonly struct Astra.GuiElement ``` Stable ID and world identity; removed nodes and previous Play handles are rejected. ## Membros | Membro | Categoria | |---|---| | [AddAction](#member-71f18290ac1e0de1) | Method | | [MoveAction](#member-b47844afaca0a82b) | Method | | [MoveEarlier](#member-11eb70eef10f16e1) | Method | | [MoveLater](#member-1030c8e134194cd6) | Method | | [OnClick](#member-2f99a2b0365e58fb) | Method | | [PlayAnimation](#member-bbe63e25613f0cf6) | Method | | [Remove](#member-0968773c6d3d2bc0) | Method | | [RemoveAction](#member-79c6a285cedcd35a) | Method | | [ReplaceAction](#member-74ff402bd5c6f4d5) | Method | | [SetText](#member-6c6c30bfe2d2ad5e) | Method | | [StopAnimation](#member-82dcd2be5f111698) | Method | | [Actions](#member-c5d4a49b75cd9bf3) | Property | | [Animation](#member-74074d2e783a7720) | Property | | [BaseImage](#member-23397b535bee7367) | Property | | [ControlSettings](#member-00b560a3f92ea766) | Property | | [Enabled](#member-c47f0377a5693811) | Property | | [Id](#member-38ac2f7a96814b60) | Property | | [Image](#member-ed6d8a5c0f1e5f24) | Property | | [ImageStyle](#member-f2f4baf04712c18e) | Property | | [Input](#member-e8d7476fafe037ab) | Property | | [InputAction](#member-aa396e785db9b17d) | Property | | [InstanceId](#member-8c665d50d28038d3) | Property | | [Interaction](#member-98cf867a260f179b) | Property | | [Kind](#member-212e81bd850173dc) | Property | | [KnobImage](#member-48be10cb12bd36f4) | Property | | [Layout](#member-79406adf2533f4a4) | Property | | [Name](#member-ee0a8b2f95201080) | Property | | [Sizing](#member-78bd0d9b53efeddf) | Property | | [Snapshot](#member-8d1da7affbefdd4a) | Property | | [Style](#member-12fdbbbd36a3871f) | Property | | [Text](#member-9cc0547eae8d9b0c) | Property | | [Transitions](#member-8fb27c340d69850e) | Property | | [Value](#member-ce081bb8f0a59f2f) | Property | | [Visible](#member-4618cde3c9ad7691) | Property |

AddAction

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

```csharp public void MoveAction(int index, int destination) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `index` | `int` | | | `destination` | `int` | |

MoveEarlier

```csharp public void MoveEarlier() ```

MoveLater

```csharp public void MoveLater() ```

OnClick

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

```csharp public void PlayAnimation() ```

Remove

```csharp public void Remove() ```

RemoveAction

```csharp public void RemoveAction(int index) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `index` | `int` | |

ReplaceAction

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

SetText

```csharp public void SetText(string text) ``` | Parâmetro | Tipo | Contrato | |---|---|---| | `text` | `string` | |

StopAnimation

```csharp public void StopAnimation() ```

Actions

```csharp public Astra.GuiActionBinding[] Actions { get; } ```

Animation

```csharp public Astra.GuiAnimation Animation { get; set; } ```

BaseImage

```csharp public string BaseImage { get; set; } ```

ControlSettings

```csharp public Astra.GuiControlSettings ControlSettings { get; set; } ```

Enabled

```csharp public bool Enabled { get; set; } ```

Id

```csharp public uint Id { get; } ```

Image

```csharp public string Image { get; set; } ```

ImageStyle

```csharp public Astra.GuiImageStyle ImageStyle { get; set; } ```

Input

```csharp public Astra.GuiControlSnapshot Input { get; } ```

InputAction

```csharp public string InputAction { get; set; } ```

InstanceId

```csharp public ulong InstanceId { get; } ```

Interaction

```csharp public Astra.GuiInteraction Interaction { get; set; } ```

Kind

```csharp public Astra.GuiKind Kind { get; } ```

KnobImage

```csharp public string KnobImage { get; set; } ```

Layout

```csharp public Astra.GuiLayout Layout { get; set; } ```

Name

```csharp public string Name { get; set; } ```

Sizing

```csharp public Astra.GuiSizing Sizing { get; set; } ```

Snapshot

```csharp public Astra.GuiSnapshot Snapshot { get; } ```

Style

```csharp public Astra.GuiStyle Style { get; set; } ```

Text

```csharp public string Text { get; set; } ```

Transitions

```csharp public Astra.GuiTransitions Transitions { get; set; } ```

Value

```csharp public float Value { get; set; } ```

Visible

```csharp public bool Visible { get; set; } ```