mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Expose editor scale to the plugin API
(cherry picked from commit ea31af68ba)
This commit is contained in:
committed by
Rémi Verschelde
parent
566213e08d
commit
ea5b3dda93
@@ -40,6 +40,14 @@
|
||||
Returns the edited (current) scene's root [Node].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_scale" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Returns the actual scale of the editor UI ([code]1.0[/code] being 100% scale). This can be used to adjust position and dimensions of the UI added by plugins.
|
||||
[b]Note:[/b] This value is set via the [code]interface/editor/display_scale[/code] and [code]interface/editor/custom_display_scale[/code] editor settings. Editor must be restarted for changes to be properly applied.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_settings">
|
||||
<return type="EditorSettings">
|
||||
</return>
|
||||
|
||||
Reference in New Issue
Block a user