Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/classes/EditorNode3DGizmo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@
Returns a list of the currently selected subgizmos. Can be used to highlight selected elements during [method _redraw].
</description>
</method>
<method name="is_selected" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if this gizmo is currently selected. Can be used to write custom visualization logic during [method _redraw].
</description>
</method>
<method name="is_subgizmo_selected" qualifiers="const">
<return type="bool" />
<param index="0" name="id" type="int" />
Expand Down
1 change: 1 addition & 0 deletions editor/scene/3d/node_3d_editor_gizmos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ void EditorNode3DGizmo::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_hidden", "hidden"), &EditorNode3DGizmo::set_hidden);
ClassDB::bind_method(D_METHOD("is_subgizmo_selected", "id"), &EditorNode3DGizmo::is_subgizmo_selected);
ClassDB::bind_method(D_METHOD("get_subgizmo_selection"), &EditorNode3DGizmo::get_subgizmo_selection);
ClassDB::bind_method(D_METHOD("is_selected"), &EditorNode3DGizmo::is_selected);

GDVIRTUAL_BIND(_redraw);
GDVIRTUAL_BIND(_get_handle_name, "id", "secondary");
Expand Down