-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
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
Expose global transform properties in Node2D, Node3D and Control #90764
base: master
Are you sure you want to change the base?
Expose global transform properties in Node2D, Node3D and Control #90764
Conversation
Could you post a screenshot of how the inspector looks with this change? I can also imagine a toggle icon somewhere, that toggles the UI between global and local transform values. |
Having both Local and Global Transform always visible in the Inspector at the same time sounds like trouble. |
This is due to #74162. There's a PR to fix this: #90584
There is no global quaternion property yet, but it should be possible to add one.
There's no global scale property in Node3D yet, but since we already have a |
IMO globals being in a subcategory would be better |
I vote for a toggle. I think having local and global properties visible and editable at the same time (even if they're collapsed by default) will confuse new users. |
4c01ed7
to
08aeb92
Compare
I've improved the descriptions somewhat. Let me know if more could be added.
Fixed (see OP for screenshots).
I've amended the PR to use a Global Transform subcategory for all 3 nodes. This is indeed much more tidy while preserving the ability to edit those values. There's an issue with error spam on startup I need to figure out a solution to, so I'm marking the PR as draft. |
08aeb92
to
053968b
Compare
This can be used to view and assign global transform in the inspector. This is useful to quickly move a node back to the origin regardless of its node hierarchy, or view its current global transform in the live scene debugger. The following properties are now exposed: - Node2D: - Global Position - Global Rotation - Global Scale - Global Skew - Node3D: - Global Position - Global Rotation - Global Basis - Control: - Global Position
053968b
to
b396611
Compare
This can be used to view and assign global transform in the inspector. This is useful to quickly move a node back to the origin regardless of its node hierarchy, or view its current global transform in the live scene debugger.
The following properties are now exposed:
The basic functionality seems to work OK from my testing. However, there's an issue with this error being spammed about 162 times when you open the editor, or even when you use
--doctool
:This does not occur with Node2D and Control.
Preview
Subgroups are collapsed by default. Here, I expanded them to take the screenshot.