The Title
property provides a friendly name for the current code editor being used within the s&box environment. This property is static and can be accessed without instantiating the CodeEditor
class.
The Title
property provides a friendly name for the current code editor being used within the s&box environment. This property is static and can be accessed without instantiating the CodeEditor
class.
To access the Title
property, simply use the following syntax:
string editorTitle = Editor.CodeEditor.Title;
This will retrieve the name of the code editor currently in use, which can be useful for display purposes or logging.
// Example of accessing the Title property string currentEditorTitle = Editor.CodeEditor.Title; // Use the title for display or logging Debug.Log($"Current Code Editor: {currentEditorTitle}");