Description
The All
property provides a static list of all active SceneEditorSession
instances. This list includes every scene editor session that is currently open and being managed by the editor. It is useful for iterating over all sessions to perform operations or checks across multiple scenes.
Usage
Use the All
property when you need to access or iterate over all currently active scene editor sessions. This can be particularly useful for batch operations or when you need to apply a change to every open scene.
Example
// Example: Iterating over all SceneEditorSessions
foreach (var session in SceneEditorSession.All)
{
// Perform an operation on each session
if (session.HasUnsavedChanges)
{
session.Save(false); // Save changes without 'Save As'
}
}