string Title { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Title property of the Scene class represents the title of the scene. However, this property is marked as obsolete and should not be used in new code. Instead, it is recommended to use the SceneInformation component to manage scene titles.

Usage

Since the Title property is obsolete, it is advised to avoid using it in your code. Instead, utilize the SceneInformation component for handling scene titles and related metadata.

Example

// Example of accessing the Title property (not recommended due to obsolescence)
Scene myScene = new Scene();
string sceneTitle = myScene.Title; // Obsolete usage

// Recommended approach
// Use SceneInformation component to manage scene titles
SceneInformation info = myScene.GetComponent<SceneInformation>();
string recommendedTitle = info.Title;