Monoscript field in inspector

Hey,

So I can display a script field in the inspector by using MonoScript script = null;.
My issue is that this requires Using UnityEditor; which prevents the game from being built. I still want the user to be able to just drag and drop a script in to the field. What are my options here?

Alex

I made a little utility to handle that. It’s available on Github.

1 Like

That’s really great. Thank you so much!