Description
The Description
property of the SceneFile
class provides a textual description of the scene. However, this property is marked as obsolete, and it is recommended to use the GetMetadata
method instead to retrieve metadata information about the scene, including its description.
Usage
To access the description of a scene, it is advised to use the GetMetadata
method with the appropriate parameters to retrieve the desired metadata. The Description
property is still accessible but should be avoided in favor of the recommended method.
Example
// Example of using GetMetadata to retrieve the description
SceneFile sceneFile = new SceneFile();
string description = sceneFile.GetMetadata("Description", "No description available");
// Avoid using the obsolete property
// string description = sceneFile.Description; // Not recommended