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

Allow filtering by Monobehaviour Subtypes #1

Open
mjholtzem opened this issue Feb 7, 2018 · 3 comments
Open

Allow filtering by Monobehaviour Subtypes #1

mjholtzem opened this issue Feb 7, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@mjholtzem
Copy link

Not sure if this is possible with Unity's APIs, but it would be awesome if you could filter a prefab search by a monobehaviour subtype

@vasyab
Copy link
Owner

vasyab commented Feb 8, 2018

Unfortunately, you would have to load and check every prefab in the project to do this. Unity search API doesn't allow such filters.

It is possible to implement such feature by preprocessing all prefabs at startup and collecting types information. That would cause long warmup time though.

@vasyab
Copy link
Owner

vasyab commented Feb 8, 2018

We are using [AssetPathFilter("Part/Of/Prefabs/Path")] attribute on fields as a workaround for this ;)

@mjholtzem
Copy link
Author

yeah fair enough. I implemented it myself and it is quite slow when you have a lot of assets. Still is pretty useful though (at least to me) and could maybe be implemented as an optional "on demand" feature.

@vasyab vasyab added the enhancement New feature or request label Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants