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 ecs_guide example doesn't seem to include an example for enum components.
Since updating an enum component's variant requires a dereference (i.e. *foo = Foo::Bar), it can be confusing to first-time users. This should be included either in that example or a dedicated enum component example.
It would also be worth demonstrating how to pattern match against a mutable enum component as well.
The text was updated successfully, but these errors were encountered:
# Objective
Add example of an enum Component to ecs_guide.
Fixes#11344.
## Solution
Extended ecs_guide "game" to include an enum tracking whether a player
is on a "hot" or "cold" streak.
## Testing
Ran example manually.
cc @MrGVSV
How can Bevy's documentation be improved?
The ecs_guide example doesn't seem to include an example for enum components.
Since updating an enum component's variant requires a dereference (i.e.
*foo = Foo::Bar
), it can be confusing to first-time users. This should be included either in that example or a dedicated enum component example.It would also be worth demonstrating how to pattern match against a mutable enum component as well.
The text was updated successfully, but these errors were encountered: