Classes without MonoBehaviour?

NeedsLoomis 4 years ago updated by agan 4 years ago 3

Is there a proper way to work with classes that don't inherit from MonoBahaviour?  I noticed they don't show up in the fuzzy finder.  Right now my workaround is to use MonoBehaviour, create the unit, then remove MonoBehaviour, which works fine but is a little kludgey.

For more info on my case, I have a list that is populated via a custom class.  I expose that class in Bolt to make changes or get info from the list, but it's cleaner without mono (no transforms and other stuff I don't need).

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Have a look at this article from the tutorial: Custom Types.


You only need to add your custom non-MonoBehaviour type to the Type Options parameter.

Perfect, thanks!