Merge pull request #103608 from gr8alpaca/expose_node_3d_snapping
Expose 3D editor snap settings to EditorInterface
This commit is contained in:
@ -162,6 +162,24 @@
|
||||
[b]Warning:[/b] Removing and freeing this node will render a part of the editor useless and may cause a crash.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_node_3d_rotate_snap" qualifiers="const">
|
||||
<return type="float" />
|
||||
<description>
|
||||
Returns the amount of degrees the 3D editor's rotational snapping is set to.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_node_3d_scale_snap" qualifiers="const">
|
||||
<return type="float" />
|
||||
<description>
|
||||
Returns the amount of units the 3D editor's scale snapping is set to.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_node_3d_translate_snap" qualifiers="const">
|
||||
<return type="float" />
|
||||
<description>
|
||||
Returns the amount of units the 3D editor's translation snapping is set to.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_open_scene_roots" qualifiers="const">
|
||||
<return type="Node[]" />
|
||||
<description>
|
||||
@ -229,6 +247,12 @@
|
||||
- [member Viewport.gui_embed_subwindows] is [code]false[/code]. This is forced to [code]true[/code] on platforms that don't support multiple windows such as Web, or when the [code]--single-window[/code] [url=$DOCS_URL/tutorials/editor/command_line_tutorial.html]command line argument[/url] is used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_node_3d_snap_enabled" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the 3D editor currently has snapping mode enabled, and [code]false[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_playing_scene" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user