Information about a Scene.
public class SceneInfo : Sansar.Script.InstanceInterfaceRemarks
Provides read only access to Scene information.
Members at a glance
| Kind | Members |
|---|---|
| Fields | ApiVersion · ApiVersionString |
| Properties | AccessGroup · AvatarId · AvatarUuid · BuildId · CompatVersion · Configuration · EventId · ExperienceId · ExperienceName · InstanceId · InstanceRole · LocationHandle · MaxUsers · ProtoVersion · SansarUri |
| Methods | ToString |
Fields
ApiVersion
public static readonly Version ApiVersionApi version the scene is running.
ApiVersionString
public static readonly string ApiVersionStringApi version the scene is running.
Properties
AccessGroup
public string AccessGroup { get; }Access group of the scene.
Value: string — String name of the access group.
Remarks
For internal debugging
AvatarId
public string AvatarId { get; }Persona handle for the owner of the scene.
Value: string — String
Remarks
This handle can be used with Client.TeleportToLocation.
AvatarUuid
public Guid AvatarUuid { get; }Persona ID for the owner of the scene.
Value: Guid — System.Guid
Remarks
The persona ID can be used to verify an agent is the owner of the scene. To retrieve the agent’s id use AgentInfo.AvatarUuid.
BuildId
public string BuildId { get; }Scene’s build id for debugging.
Value: string — String build id of the region server.
Remarks
For internal debugging.
CompatVersion
public string CompatVersion { get; }Scene’s asset compatibility version for debugging.
Value: string — String
Remarks
All assets must match this version to load.
Configuration
public string Configuration { get; }Scene’s build configuration.
Value: string — Expected values are debug, release or production.
Remarks
For internal debugging
EventId
public string EventId { get; }The event id of this scene if it is part of an event.
Value: string — The Guid for this event as a string.
ExperienceId
public string ExperienceId { get; }Scene’s World Id.
Value: string — World id string
Remarks
For internal debugging.
ExperienceName
public string ExperienceName { get; }Scene’s experience name.
Value: string — Experience name string
Remarks
For internal debugging.
InstanceId
public string InstanceId { get; }Instance id for this specific instance of the scene.
Value: string — String
InstanceRole
public string InstanceRole { get; }The role of this scene.
Value: string — The role of this instance: “Unset”, “Broadcaster”, or “Clone”.
Remarks
Broadcaster scenes have the role “Broadcaster” and clone scenes have the role “Clone”. Normal scenes will have the role “Unset”.
LocationHandle
public string LocationHandle { get; }Location handle for the Experience.
Value: string — String
Remarks
This handle can be used with Client.TeleportToLocation.
MaxUsers
public int MaxUsers { get; }Maximum number of users allowed per instance of this scene.
Value: int — Maximum number of users allowed in the scene.
Remarks
New instances will start if more users attempt to join the scene.
ProtoVersion
public string ProtoVersion { get; }Scene’s message protocol version for debugging.
Value: string — String
Remarks
Can be used to verify the Experience’s protocol version is the expected value.
SansarUri
public string SansarUri { get; }The full Sansar URI for this instance of the scene.
Value: string — String
Methods
ToString
public override string ToString()A string representation of this object.
Returns: string — A string representation of this object.
Remarks
The format of this string may change between releases.
Used in examples
- StatsExample.cs
- TeleportHotkeys.cs
- VisitorTrackerExample.cs
- BanHammerExample.cs
- ObjectScriptExample.cs
- SceneObjectScriptExample.cs
- ScriptLibrary/Scene/ChatCommand.cs
- ScriptLibrary/Scene/Hotkey.cs
Generated from the Sansar 47.10.0 client ScriptApi snapshot.