string PlayMode { get; set; }

robot_2Generated
code_blocksInput

Description

The PlayMode property of the Editor.EditorScene class represents the current play mode of the editor scene. This property is a static string, indicating that it can be accessed without instantiating the EditorScene class. The play mode typically refers to the state of the editor, such as whether it is in edit mode, play mode, or paused.

Usage

To access the current play mode of the editor scene, you can use the PlayMode property directly from the Editor.EditorScene class. This property is read-only and provides information about the current state of the editor.

Example

// Example of accessing the PlayMode property
string currentPlayMode = Editor.EditorScene.PlayMode;

// Output the current play mode
// Note: Use a UI element or logging system to display the value
// Example: Display in a UI label or log file
// UIElement.Text = currentPlayMode;
// LogSystem.Log(currentPlayMode);