Hi, I’m scripting in C# and I have an abstract base class that inherits from ScriptableObject. Several other concrete classes inherit from this abstract class. The base class and the concrete classes all have constructors with no arguments. When I call ScriptableObject.CreateInstance<>() supplying a concrete class for the generic, I get back null. Why could this be?
Nevermind, I fixed it! The problem was that I put all the concrete classes in one file (since they were small), but apparently each one has to have its own file.
1 Like