For example I want to show the test variable in the inspector below, but this example doesnt show anything when I create a new instance of the class and run the ScrollListContainer.Create() function.
class ScrollListContainer
{
static public var test:int;
function Create()
{
scrollListContainer = new GameObject ("Scroll List COntainer");
}
}
I haven’t touched showing variables of nested class objects. I know these work on the scripts that you attach directly to GameObjects, but I haven’t done it with a custom, non-MonoBehaviour class.
How are you trying to access this class in the Editor?
I dont understand. Surely the variables should be exposed when I instancxe the class. Are you saying that everytime that I uinstance a class I need to create a bunch of new variables from it manually ???
ANyway, if that is so how do I show thos instance variable in the inspector???
Adding scripts to gameobjects is not a problem, the problem is that my class actually creates a game object. It is this case that the variables are not seen in the inspector…??