|
@@ -334,7 +334,7 @@
|
|
|
<return type="bool" />
|
|
|
<description>
|
|
|
Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b] and [b]AssetLib[/b]).
|
|
|
- When the plugin's workspace is selected, other main screen plugins will be hidden, but your plugin will not appear automatically. It needs to be added as a child of [method EditorInterface.get_base_control] and made visible inside [method _make_visible].
|
|
|
+ When the plugin's workspace is selected, other main screen plugins will be hidden, but your plugin will not appear automatically. It needs to be added as a child of [method EditorInterface.get_editor_main_screen] and made visible inside [method _make_visible].
|
|
|
Use [method _get_plugin_name] and [method _get_plugin_icon] to customize the plugin button's appearance.
|
|
|
[codeblock]
|
|
|
var plugin_control
|