Add info about the need for 'static + Send + Sync
as a trait restraint for generic resources to the Res and ResMut docs
#3085
Labels
C-Docs
An addition or correction to our documentation
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
How can Bevy's documentation be improved?
Generic resources (ex:
SomeResource<T>
) require the trait constraint of'static + Send + Sync
to run, otherwise you'll get an error likemethod not found
.Res
andResMut
lack this little bit of info, making debugging a pain to figure out.Please add this bit of info to the docs.
The text was updated successfully, but these errors were encountered: