bevy icon indicating copy to clipboard operation
bevy copied to clipboard

System sets need docs

Open alercah opened this issue 1 year ago • 0 comments

I would have expected a SystemSet to be some sort of container type that you can add and remove systems to/from, just from it's name, but that couldn't be further from the truth.

Unfortunately, the docs identify a SystemSet as "Types that identify logical groups of systems." and no more.

Finding an example does seem to illustrate the picture somewhat, and it reveals the existence of a derive macro, whose docs helpfully inform me that it doesn't work on unions. But does it work on structs? The example seems to imply that SystemSet only makes sense for valueless enums, unless each different value of a type is actually a different system set, so it could work to use, say a struct Foo(u8) for 255 different system sets? Or, maybe it's just unit structs, actually?

These are the kind of questions I have and would love to see answered by the docs.

alercah avatar Feb 10 '24 06:02 alercah