--- title: "Astra.GameViewState" 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-gameviewstate/ --- # Astra.GameViewState Estado da vista de jogo no quadro corrente. **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 record struct Astra.GameViewState ``` Estado da vista de jogo no quadro corrente. **Interfaces:** `System.IEquatable`. ## Membros | Membro | Categoria | |---|---| | [.ctor](#member-7ea73dd57b0fa106) | Method | | [CameraObjectId](#member-b471f0592831f0ad) | Property | | [Dpi](#member-b0aa7ef731862c9a) | Property | | [Height](#member-f92ce382a5a7d8bc) | Property | | [Platform](#member-c07eb8b4ea97a334) | Property | | [SafeArea](#member-75c10eadc2e14cbe) | Property | | [SafeAreaReported](#member-71b2153bd600e922) | Property | | [Width](#member-2fda0a7a2a805581) | Property |

.ctor

```csharp public GameViewState(float Width, float Height, float Dpi, bool SafeAreaReported, Astra.ScreenRect SafeArea, Astra.GameViewPlatform Platform, ulong CameraObjectId) ``` Estado da vista de jogo no quadro corrente. | Parâmetro | Tipo | Contrato | |---|---|---| | `Width` | `float` | | | `Height` | `float` | | | `Dpi` | `float` | | | `SafeAreaReported` | `bool` | | | `SafeArea` | `Astra.ScreenRect` | | | `Platform` | `Astra.GameViewPlatform` | | | `CameraObjectId` | `ulong` | |

CameraObjectId

```csharp public ulong CameraObjectId { get; init; } ```

Dpi

```csharp public float Dpi { get; init; } ```

Height

```csharp public float Height { get; init; } ```

Platform

```csharp public Astra.GameViewPlatform Platform { get; init; } ```

SafeArea

```csharp public Astra.ScreenRect SafeArea { get; init; } ```

SafeAreaReported

```csharp public bool SafeAreaReported { get; init; } ```

Width

```csharp public float Width { get; init; } ```