How to check if another asset is active in the editor

How can I check if for example ProBuilder was downloaded in my project by script?

I would like to add support to 3rd party assets from within my own asset, and for that I need to check if that particular asset was downloaded by the user so I can access it.

Alex

You could use reflection to look for a ProBuilder class name by string. If you find it, your script can add a compiler define to conditionally compile your ProBuilder-specific code.

1 Like