Skip to content
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

Change Entity with Dropdown selection #123

Open
ItsDoot opened this issue Feb 4, 2023 · 2 comments
Open

Change Entity with Dropdown selection #123

ItsDoot opened this issue Feb 4, 2023 · 2 comments

Comments

@ItsDoot
Copy link

ItsDoot commented Feb 4, 2023

Currently entities are displayed in either of 2 ways: a label of the ID, or its name and a dropdown of its components.
But there isn't a way to change it to point to a different entity.

How feasible would it be to add an entity selection dropdown adjacent to the ID label / component dropdown?
Given a production game/app may have thousands or millions of entities, the design should include a way to use Query filters.

@jakobhellermann
Copy link
Owner

How about a mode where you can select an entity by searching for its name? It's not as general as a full Query filter, but maybe good enough. Or you could have

struct Data {
  #[inspector(display = EntityDisplay::Select { with_components: vec![TypeId::of<Enemy>()] })
  entity: Entity,
}

and then be able to select one of these entities matching the filtered types.

@ItsDoot
Copy link
Author

ItsDoot commented Feb 14, 2023

For my use case, either of name-based search or that simplified component checking would work fine. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants