Skip to content

Expose get_active_node() in 3D editor #107489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented Jun 13, 2025

#102176 added the ability to select an active node that other nodes can use as a reference for various functions.

Copy pasted form the updated doc below:

Returns the active Node3D in the 3D editor. The active node is the primary selected node when multiple nodes are selected in the editor. Returns null if no 3D node is currently active.

Note: This method is useful for editor plugins that need to determine which node to operate on during multi-selection scenarios.

May be used for some kind of snapping plugin, setting up custom gizmos, or other things that need a reference.

2025-06-13.17-32-00.mp4

@ryevdokimov ryevdokimov force-pushed the expose-active-node branch from 201b9e1 to 5570dc6 Compare July 8, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants