Skip to content
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

Add support for per-handle colors to 3D editor gizmos #60474

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

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Apr 23, 2022

This can be used to color handles depending on the axis they modify, their purpose, and more. This is accessible from the scripting API. As a bonus, the hover feedback is now much more noticeable.

In the editor itself, this is only used in CSGBox3D for now.

Per-handle colors are optional. Gizmos not using per-handle colors will use a default gray color.

Note: Marked as draft, since I'd like to add per-handle colors to various built-in 3D nodes before this can be merged.

Preview

Per-handle color

simplescreenrecorder-2022-04-23_18.38.37.mp4

Default handle color

simplescreenrecorder-2022-04-23_18.38.54.mp4

This can be used to color handles depending on the axis they modify,
their purpose, and more. This is accessible from the scripting API.

In the editor itself, this is only used in CSGBox3D for now.

Per-handle colors are optional. Gizmos not using per-handle colors
will use a default gray color.
@Calinou Calinou force-pushed the 3d-editor-gizmos-add-per-handle-colors branch from c2c1c9c to 4ae3fcc Compare April 23, 2022 16:51
@fire
Copy link
Member

fire commented Apr 23, 2022

Amazing!

@fire-forge
Copy link
Contributor

Nice! Looks a lot better than the old gizmos.

Some other nodes that can be added:

  • CollisionShape3D with BoxShape3D
  • Decal
  • OccluderInstance3D with BoxOccluder3D
  • GPUParticles3D
  • GPUParticlesAttractorBox3D
  • GPUParticlesAttractorVectorField3D
  • GPUParticlesCollisionBox3D
  • GPUParticlesCollisionSDF3D
  • GPUParticlesCollisionHeightField3D

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.

4 participants