Merge pull request #65528 from Mickeon/rename-more-spatial-to-node-3d
Rename remaining "Spatial" in Plugins to "Node3D"
This commit is contained in:
commit
8f7cb50c9a
20 changed files with 161 additions and 153 deletions
|
|
@ -168,18 +168,18 @@
|
|||
Removes everything in the gizmo including meshes, collisions and handles.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_node_3d" qualifiers="const">
|
||||
<return type="Node3D" />
|
||||
<description>
|
||||
Returns the [Node3D] node associated with this gizmo.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_plugin" qualifiers="const">
|
||||
<return type="EditorNode3DGizmoPlugin" />
|
||||
<description>
|
||||
Returns the [EditorNode3DGizmoPlugin] that owns this gizmo. It's useful to retrieve materials using [method EditorNode3DGizmoPlugin.get_material].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_spatial_node" qualifiers="const">
|
||||
<return type="Node3D" />
|
||||
<description>
|
||||
Returns the Node3D node associated with this gizmo.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_subgizmo_selection" qualifiers="const">
|
||||
<return type="PackedInt32Array" />
|
||||
<description>
|
||||
|
|
@ -200,7 +200,7 @@
|
|||
Sets the gizmo's hidden state. If [code]true[/code], the gizmo will be hidden. If [code]false[/code], it will be shown.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_spatial_node">
|
||||
<method name="set_node_3d">
|
||||
<return type="void" />
|
||||
<param index="0" name="node" type="Node" />
|
||||
<description>
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
</brief_description>
|
||||
<description>
|
||||
[EditorNode3DGizmoPlugin] allows you to define a new type of Gizmo. There are two main ways to do so: extending [EditorNode3DGizmoPlugin] for the simpler gizmos, or creating a new [EditorNode3DGizmo] type. See the tutorial in the documentation for more info.
|
||||
To use [EditorNode3DGizmoPlugin], register it using the [method EditorPlugin.add_spatial_gizmo_plugin] method first.
|
||||
To use [EditorNode3DGizmoPlugin], register it using the [method EditorPlugin.add_node_3d_gizmo_plugin] method first.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link title="Spatial gizmo plugins">$DOCS_URL/tutorials/plugins/editor/spatial_gizmos.html</link>
|
||||
<link title="Node3D gizmo plugins">$DOCS_URL/tutorials/plugins/editor/spatial_gizmos.html</link>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="_can_be_hidden" qualifiers="virtual const">
|
||||
|
|
|
|||
|
|
@ -455,6 +455,14 @@
|
|||
[/codeblocks]
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_node_3d_gizmo_plugin">
|
||||
<return type="void" />
|
||||
<param index="0" name="plugin" type="EditorNode3DGizmoPlugin" />
|
||||
<description>
|
||||
Registers a new [EditorNode3DGizmoPlugin]. Gizmo plugins are used to add custom gizmos to the 3D preview viewport for a [Node3D].
|
||||
See [method add_inspector_plugin] for an example of how to register a plugin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_scene_format_importer_plugin">
|
||||
<return type="void" />
|
||||
<param index="0" name="scene_format_importer" type="EditorSceneFormatImporter" />
|
||||
|
|
@ -473,14 +481,6 @@
|
|||
If [param first_priority] is [code]true[/code], the new import plugin is inserted first in the list and takes precedence over pre-existing plugins.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_spatial_gizmo_plugin">
|
||||
<return type="void" />
|
||||
<param index="0" name="plugin" type="EditorNode3DGizmoPlugin" />
|
||||
<description>
|
||||
Registers a new [EditorNode3DGizmoPlugin]. Gizmo plugins are used to add custom gizmos to the 3D preview viewport for a [Node3D].
|
||||
See [method add_inspector_plugin] for an example of how to register a plugin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_tool_menu_item">
|
||||
<return type="void" />
|
||||
<param index="0" name="name" type="String" />
|
||||
|
|
@ -621,6 +621,13 @@
|
|||
Removes an inspector plugin registered by [method add_import_plugin]
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_node_3d_gizmo_plugin">
|
||||
<return type="void" />
|
||||
<param index="0" name="plugin" type="EditorNode3DGizmoPlugin" />
|
||||
<description>
|
||||
Removes a gizmo plugin registered by [method add_node_3d_gizmo_plugin].
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_scene_format_importer_plugin">
|
||||
<return type="void" />
|
||||
<param index="0" name="scene_format_importer" type="EditorSceneFormatImporter" />
|
||||
|
|
@ -635,13 +642,6 @@
|
|||
Remove the [EditorScenePostImportPlugin], added with [method add_scene_post_import_plugin].
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_spatial_gizmo_plugin">
|
||||
<return type="void" />
|
||||
<param index="0" name="plugin" type="EditorNode3DGizmoPlugin" />
|
||||
<description>
|
||||
Removes a gizmo plugin registered by [method add_spatial_gizmo_plugin].
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_tool_menu_item">
|
||||
<return type="void" />
|
||||
<param index="0" name="name" type="String" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue