# SceneInfo

Kind: Class · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span>Inherits <a href="/scripting/api/sansar.script/instanceinterface">Sansar.Script.InstanceInterface</a></span>
</div>

<span id="T:Sansar.Simulation.SceneInfo"></span>

Information about a Scene.

```csharp
public class SceneInfo : Sansar.Script.InstanceInterface
```

## Remarks

Provides read only access to Scene information.

## Members at a glance

| Kind | Members |
|---|---|
| **Fields** | [ApiVersion](#apiversion) · [ApiVersionString](#apiversionstring) |
| **Properties** | [AccessGroup](#accessgroup) · [AvatarId](#avatarid) · [AvatarUuid](#avataruuid) · [BuildId](#buildid) · [CompatVersion](#compatversion) · [Configuration](#configuration) · [EventId](#eventid) · [ExperienceId](#experienceid) · [ExperienceName](#experiencename) · [InstanceId](#instanceid) · [InstanceRole](#instancerole) · [LocationHandle](#locationhandle) · [MaxUsers](#maxusers) · [ProtoVersion](#protoversion) · [SansarUri](#sansaruri) |
| **Methods** | [ToString](#tostring) |

## Fields

### ApiVersion

<div class="api-card">
<span id="F:Sansar.Simulation.SceneInfo.ApiVersion"></span>

```csharp signature
public static readonly Version ApiVersion
```

Api version the scene is running.

</div>

### ApiVersionString

<div class="api-card">
<span id="F:Sansar.Simulation.SceneInfo.ApiVersionString"></span>

```csharp signature
public static readonly string ApiVersionString
```

Api version the scene is running.

</div>


## Properties

### AccessGroup

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.AccessGroup"></span>

```csharp signature
public string AccessGroup { get; }
```

Access group of the scene.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String name of the access group.

<details class="api-remarks"><summary>Remarks</summary>

For internal debugging

</details>

</div>

### AvatarId

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.AvatarId"></span>

```csharp signature
public string AvatarId { get; }
```

Persona handle for the owner of the scene.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String

<details class="api-remarks"><summary>Remarks</summary>

This handle can be used with [`Client.TeleportToLocation`](/scripting/api/sansar.simulation/client#teleporttolocation-string-string).

</details>

</div>

### AvatarUuid

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.AvatarUuid"></span>

```csharp signature
public Guid AvatarUuid { get; }
```

Persona ID for the owner of the scene.

**Value:** [Guid](https://learn.microsoft.com/dotnet/api/system.guid) — System.Guid

<details class="api-remarks"><summary>Remarks</summary>

The persona ID can be used to verify an agent is the owner of the scene. To retrieve the agent&#39;s id use [`AgentInfo.AvatarUuid`](/scripting/api/sansar.simulation/agentinfo#avataruuid).

</details>

</div>

### BuildId

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.BuildId"></span>

```csharp signature
public string BuildId { get; }
```

Scene&#39;s build id for debugging.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String build id of the region server.

<details class="api-remarks"><summary>Remarks</summary>

For internal debugging.

</details>

</div>

### CompatVersion

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.CompatVersion"></span>

```csharp signature
public string CompatVersion { get; }
```

Scene&#39;s asset compatibility version for debugging.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String

<details class="api-remarks"><summary>Remarks</summary>

All assets must match this version to load.

</details>

</div>

### Configuration

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.Configuration"></span>

```csharp signature
public string Configuration { get; }
```

Scene&#39;s build configuration.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — Expected values are debug, release or production.

<details class="api-remarks"><summary>Remarks</summary>

For internal debugging

</details>

</div>

### EventId

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.EventId"></span>
<div class="api-badges"><span class="api-badge api-since">Added in 31.1.0</span></div>

```csharp signature
public string EventId { get; }
```

The event id of this scene if it is part of an event.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — The Guid for this event as a string.

</div>

### ExperienceId

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.ExperienceId"></span>

```csharp signature
public string ExperienceId { get; }
```

Scene&#39;s World Id.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — World id string

<details class="api-remarks"><summary>Remarks</summary>

For internal debugging.

</details>

</div>

### ExperienceName

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.ExperienceName"></span>

```csharp signature
public string ExperienceName { get; }
```

Scene&#39;s experience name.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — Experience name string

<details class="api-remarks"><summary>Remarks</summary>

For internal debugging.

</details>

</div>

### InstanceId

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.InstanceId"></span>

```csharp signature
public string InstanceId { get; }
```

Instance id for this specific instance of the scene.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String

</div>

### InstanceRole

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.InstanceRole"></span>

```csharp signature
public string InstanceRole { get; }
```

The role of this scene.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — The role of this instance: &quot;Unset&quot;, &quot;Broadcaster&quot;, or &quot;Clone&quot;.

<details class="api-remarks"><summary>Remarks</summary>

Broadcaster scenes have the role &quot;Broadcaster&quot; and clone scenes have the role &quot;Clone&quot;. Normal scenes will have the role &quot;Unset&quot;.

</details>

</div>

### LocationHandle

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.LocationHandle"></span>

```csharp signature
public string LocationHandle { get; }
```

Location handle for the Experience.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String

<details class="api-remarks"><summary>Remarks</summary>

This handle can be used with [`Client.TeleportToLocation`](/scripting/api/sansar.simulation/client#teleporttolocation-string-string).

</details>

</div>

### MaxUsers

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.MaxUsers"></span>

```csharp signature
public int MaxUsers { get; }
```

Maximum number of users allowed per instance of this scene.

**Value:** [int](https://learn.microsoft.com/dotnet/api/system.int32) — Maximum number of users allowed in the scene.

<details class="api-remarks"><summary>Remarks</summary>

New instances will start if more users attempt to join the scene.

</details>

</div>

### ProtoVersion

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.ProtoVersion"></span>

```csharp signature
public string ProtoVersion { get; }
```

Scene&#39;s message protocol version for debugging.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String

<details class="api-remarks"><summary>Remarks</summary>

Can be used to verify the Experience&#39;s protocol version is the expected value.

</details>

</div>

### SansarUri

<div class="api-card">
<span id="P:Sansar.Simulation.SceneInfo.SansarUri"></span>

```csharp signature
public string SansarUri { get; }
```

The full Sansar URI for this instance of the scene.

**Value:** [string](https://learn.microsoft.com/dotnet/api/system.string) — String

</div>


## Methods

### ToString

<div class="api-card">
<span id="M:Sansar.Simulation.SceneInfo.ToString"></span>
<span id="M:Sansar.Simulation.SceneInfo.ToString()"></span>

```csharp signature
public override string ToString()
```

A string representation of this object.

**Returns:** [string](https://learn.microsoft.com/dotnet/api/system.string) — A string representation of this object.

<details class="api-remarks"><summary>Remarks</summary>

The format of this string may change between releases.

</details>

</div>


## Used in examples

- [StatsExample.cs](/scripting/examples/stats-example)
- [TeleportHotkeys.cs](/scripting/examples/teleport-hotkeys)
- [VisitorTrackerExample.cs](/scripting/examples/visitor-tracker)
- [BanHammerExample.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/BanHammerExample.cs)
- [ObjectScriptExample.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ObjectScriptExample.cs)
- [SceneObjectScriptExample.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/SceneObjectScriptExample.cs)
- [ScriptLibrary/Scene/ChatCommand.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Scene/ChatCommand.cs)
- [ScriptLibrary/Scene/Hotkey.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Scene/Hotkey.cs)

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>