string Description { get; set; }

robot_2Generated
code_blocksInput

Description

The Description property of the Scene class provides a textual description of the scene. This property is marked as obsolete and should not be used in new code. Instead, it is recommended to use the SceneInformation component for managing scene descriptions.

Usage

To access the description of a scene, you can use the Description property. However, since this property is obsolete, it is advised to transition to using the SceneInformation component for future-proofing your code.

Example

// Accessing the Description property (not recommended due to obsolescence)
Scene myScene = new Scene();
string sceneDescription = myScene.Description;

// Recommended approach
// Use the SceneInformation component to manage scene descriptions
// SceneInformation sceneInfo = myScene.GetComponent<SceneInformation>();
// string sceneDescription = sceneInfo.Description;