From 49f6dc5004931f17a7be008b2159cd5915cd897d Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Sun, 5 Apr 2020 17:19:24 +0300 Subject: Expose methods to play scene from plugin code --- doc/classes/EditorInterface.xml | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml index c2c73a8b83..1d877e632e 100644 --- a/doc/classes/EditorInterface.xml +++ b/doc/classes/EditorInterface.xml @@ -72,6 +72,13 @@ Returns an [Array] with the file paths of the currently opened scenes. + + + + + Returns the name of the scene that is being played. If no scene is currently being played, returns an empty string. + + @@ -117,6 +124,13 @@ Shows the given property on the given [code]object[/code] in the Editor's Inspector dock. + + + + + Returns [code]true[/code], if a scene is currently being played; [code]false[/code] otherwise. Paused scenes are considered as being played. + + @@ -146,6 +160,29 @@ Opens the scene at the given path. + + + + + Plays the currently active scene. + + + + + + + + + Plays the scene specified by its filepath. + + + + + + + Plays the main scene. + + @@ -201,6 +238,13 @@ Sets the enabled status of a plugin. The plugin name is the same as its directory name. + + + + + Stops the scene that is currently playing. + + -- cgit v1.2.3