summaryrefslogtreecommitdiff
path: root/doc/classes/EditorInterface.xml
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-04-04 17:08:25 +0300
committerYuri Sizov <yuris@humnom.net>2021-04-05 18:44:01 +0300
commitea31af68ba4aa5f15ef0dab9555f80d8efdfe6c7 (patch)
tree29b0b89871a157ac1ec805b02d279b1156e7b0f2 /doc/classes/EditorInterface.xml
parented2f51b15fee22a35d2a975fd77a70fc291bd8de (diff)
Expose editor scale to the plugin API
Diffstat (limited to 'doc/classes/EditorInterface.xml')
-rw-r--r--doc/classes/EditorInterface.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml
index b01af71852..4d0e11fb19 100644
--- a/doc/classes/EditorInterface.xml
+++ b/doc/classes/EditorInterface.xml
@@ -48,6 +48,14 @@
[b]Note:[/b] This returns the main editor control containing the whole editor, not the 2D or 3D viewports specifically.
</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>