You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The displays make it easy to customize the Heads up display elements using bevy scenes. This is stalled waiting on the ability to use the Ui Text component in scenes. This PR bevyengine/bevy#1395 gives some insight
I'm aware of two components that have containers in bevy:
Children: it works because Entity uses reflect_value, there are no dynamic types
Text: currently cannot be correctly reflected because of the sections field. Trying to deserialize any UI with text triggers the panic.
TL;DR: it's currently impossible to have containers of complex types in a scene
The finished System should use marker components that should be placed alongside a Text component, it specifies the index of the TextSection to update with the related Text represented by the component.
Currently i have somewhat hacked this behavior in using a TextField component That adds the ui::FocusPolicy & ui::CalculatedSize components. Then the text marker components add a Text component with the appropriate text.
pubstructFPSTextSection(pubusize);
Potential text elements to consider
Frames per second
Ammunition count
Used ammunition
Health Percentage
Active Weapon Name
Current Kill Count
Current Death Count
The text was updated successfully, but these errors were encountered:
The displays make it easy to customize the Heads up display elements using bevy scenes. This is stalled waiting on the ability to use the Ui Text component in scenes. This PR bevyengine/bevy#1395 gives some insight
The finished System should use marker components that should be placed alongside a Text component, it specifies the index of the TextSection to update with the related Text represented by the component.
Currently i have somewhat hacked this behavior in using a
TextField
component That adds theui::FocusPolicy
&ui::CalculatedSize
components. Then the text marker components add a Text component with the appropriate text.Potential text elements to consider
The text was updated successfully, but these errors were encountered: