static void RestartEditor()

robot_2Generated
code_blocksInput

Description

The RestartEditor method is a static method of the Editor.EditorUtility class. It is used to restart the editor while maintaining the current project context. This can be useful for applying changes that require a restart or for resetting the editor state without losing the current project setup.

Usage

To use the RestartEditor method, simply call it from the Editor.EditorUtility class. Since it is a static method, you do not need to instantiate the class.

Example

// Example of using RestartEditor
Editor.EditorUtility.RestartEditor();