Description
The Id
property of the SceneFile
class represents a unique identifier for a scene file. This identifier is of type System.Guid
and is used to uniquely distinguish each scene file within the Sandbox environment. The property is decorated with the JsonPropertyName
attribute, which specifies that the property should be serialized with the name __guid
when using JSON serialization.
Usage
To access the Id
property, you need to have an instance of the SceneFile
class. This property is read-only and is automatically assigned when a scene file is created. It is primarily used for identification and tracking purposes within the Sandbox environment.
Example
// Example of accessing the Id property of a SceneFile instance
SceneFile sceneFile = new SceneFile();
Guid sceneId = sceneFile.Id;
// Output the unique identifier of the scene file
Console.WriteLine($"Scene ID: {sceneId}");