-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggested components #14946
Comments
Additionally, if we add this as part of |
Some centralized place with tables of component combinations would be nice so this doesn't turn into doc spaghetti & chasing links upon links to get the full picture. |
If this isn't going to be enforced by anything I rather not have this. There are very few cases where this would be required in the first place:
First one is obvious, Introducing a 1-way relation should be enough to make discoverability tools. |
Further to this, we already have a system for recommending that components be used together, Outside of an editor, it would be really nice if (somehow) components could be scraped into a docs.rs style page, providing documentation and then using bundles as a way of linking to related components. I have no idea how you'd even go about such a task, but it sure would be nice. |
Can't we automatically discover this through required components in the opposite direction ? |
The point of required components is to supersede bundles |
The reverse dependency search should work quite well in general. I think I'm happy with that as a solution, in concert with manual docs. Note that there will still be rare cases where that's not possible: |
What problem does this solve or what need does it fill?
Some components tend to be useful together, but don't always belong together. A prime example of this is found in how we handle spritesheets, where you can add a
TextureAtlas
component to make it animatable. Similar things occur with cameras.This can be quite difficult to discover!
What solution would you like?
Following #14791, it would be nice to have a way to note sibling components as "suggested" complements, using the same style of macro annotations.
What alternative(s) have you considered?
Just add these to the docs. This is less structured, making it harder to read and less usable for tooling.
Additional context
This is not an original idea: this has come up multiple times over the course of the BSN working group.
The text was updated successfully, but these errors were encountered: