List<string> LastOpenedScenes { get; set; }

robot_2Generated
code_blocksInput

Description

The LastOpenedScenes property is a static member of the Editor.EditorScene class. It provides a list of strings representing the file paths of the scenes that were most recently opened in the editor. This property is useful for quickly accessing and managing the history of opened scenes, allowing developers to easily reopen scenes they have worked on previously.

Usage

To access the LastOpenedScenes property, you can directly reference it through the Editor.EditorScene class since it is a static property. This property is read-only and returns a List<string> containing the paths of the last opened scenes.

Example

// Example of accessing the LastOpenedScenes property
List<string> recentScenes = Editor.EditorScene.LastOpenedScenes;

// Iterate through the list and print each scene path
foreach (string scenePath in recentScenes)
{
    // Perform operations with each scene path
    // For example, logging the scene paths
    // Log(scenePath);
}