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
Add WireframeColor to various PbrBundle
Set default_color to yellow in WireframeConfig
Set global to true in WireframeConfig
What went wrong
WireframeColor is ignored and all wireframe is yellow as set in the global config. Documentation state that in the absence of the Wireframe component, it should still influence the wire color when global is set to true.
what were you expecting?
The wire color of the pbr bundle should be the one set the WireframeColor component.
what actually happened?
All PbrBundle used the global default color from WireframeConfig
Additional information
If I add the Wireframe component, the color is properly applied to the wireframe.
The text was updated successfully, but these errors were encountered:
# Objective
- The docs says the WireframeColor is supposed to override the default
global color but it doesn't.
## Solution
- Use WireframeColor to override global color like docs said it was
supposed to do.
- Updated the example to document this feature
- I also took the opportunity to clean up the code a bit
Fixes#13032
Bevy version
0.13.2
What you did
Add
WireframeColor
to variousPbrBundle
Set default_color to yellow in
WireframeConfig
Set
global
to true inWireframeConfig
What went wrong
WireframeColor
is ignored and all wireframe is yellow as set in the global config. Documentation state that in the absence of theWireframe
component, it should still influence the wire color when global is set to true.The wire color of the pbr bundle should be the one set the
WireframeColor
component.All PbrBundle used the global default color from
WireframeConfig
Additional information
If I add the
Wireframe
component, the color is properly applied to the wireframe.The text was updated successfully, but these errors were encountered: