-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Text rendering outside of the UI #971
Comments
Issue is that you have an entity which belongs to the UI world as a child of an entity that belongs to the 2D world... This could be better handled by the engine... but if you want to get around the failure, just don't mix UI components with others... |
Ok...so how can i display a text in my 2D world, which is a child of another 2D component? |
I’ll still mark this as an inappropriate crash and leave this open until we have something more graceful when this happens. |
Cool. Could one of you two be so kind and tell me how i can add text as a child to a 2D component? |
As per Discord, Bevy currently only has text rendering in the UI render pipeline. For 2D and 3D that still needs to be implemented. 2D could potentially be rather easy, when one can reuse stuff from the UI pipeline. |
Would anyone like to collaborate with me to implement the 2D functionality for this? I'm thinking of digging into this some time next week. Documenting info I learned from @cart in Discord:
|
Thanks to @PabloMansanet's help, the implementation is ready for review/testing. Give it a try! #1122 |
This was initially about an error that occured while i tried to render text with
TextComponents
on the 2D camera.Bevy version
Bevy Release: 0.3.0
Operating system & version
Edition Windows 10 Pro
Version 20H2
OSbuild 19042.630
What you did
You can clone and run this example repo.
What you expected to happen
I expected Bevy to render all components with their children.
What actually happened
This error occured
'Compute Task Pool (1)' panicked... - Click me to see the rest!
Additional information
Any additional information you would like to add such as screenshots, logs, etc.
The text was updated successfully, but these errors were encountered: