Support Ui to perform Transform in the world #21812
Draft
+884
−32
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.
Preface
I still have many unresolved issues. I am publishing this PR to gain more attention and opinions. Ensure the integrity of this feature.
I have already implemented some of the basic expected functions, but I have not conducted testing and improved the documentation. However, I have added an example.For example, the bevy_ui_contain feature needs to be enabled.
Existing problems:
...
Expectations and difficulties:
Non root nodes take effect (May affect the entire Node)UiContain supports Visibility (Restricted by the relationship of visibility)Objective
Fixes #21278Try #5476
Solution
4.Camera is a screen based "container" for Node Ui, so Containing is a world based "container".
Testing
Did you test these changes? If so, how?
I already have the outline of testing, but I haven't written the test yet.But I have enabled a new feature for isolation to ensure that other functions are not affected
Are there any parts that need more testing?
Need to test whether the Node size, shape, image display, button function, etc. based on Component UiSurface are correct.
Showcase