Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Add naive support for text gizmos.
Draw a label at a given point using the default font. 2d only, no rich text support, no anchors, no rotation.
Fixes #16490
Solution
I'm not familiar with the gizmos implementation, so my plan is to hack together something limited that just about works, and then hand it over to a rendering SME or someone to push over the line.
Done
text_2dmethod to theGizmosSystemParamthat adds text gizmos for rendering to aGizmoTextBufferresource.gizmo_text_systemdoes text layout for each text gizmo queued in theGizmoTextBufferand adds the resulting glyph geometry to theGizmoBuffer.Todo
TextGizmoPipelineinbevy_gizmos_render.text_gizmosfeature-gate, but it overcomplicated things at this stage, so removed it for now. I'll add it back at the end.