Description
The RestartEditorPrompt
method in the Editor.EditorUtility
class is a static method used to display a prompt to the user, asking them if they would like to restart the editor. This method is useful when changes have been made that require a restart to take effect, such as updates or configuration changes.
Usage
To use the RestartEditorPrompt
method, call it with the appropriate parameters:
message
: A string
that contains the message to be displayed in the prompt.
title
: A string
that specifies the title of the prompt window.
This method does not return a value and will display a dialog to the user with the specified message and title.
Example
// Example usage of RestartEditorPrompt
Editor.EditorUtility.RestartEditorPrompt("Changes have been made that require a restart.", "Restart Required");