How do I show a classes vars in the inspector?

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 don’t believe static variables are exposed.

I’ve tried everyting…static, public, static public and just the var on its own but nothing appears.

??

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?

In the editor I’m just clicking on the newly created gameobject and no vars are displayed in the inspector.

http://forum.unity3d.com/viewtopic.php?t=59830&postdays=0&postorder=asc&start=0 (a little related)

statics are not exposed and you can not expose them through any “trick”, only instance variables are exposed

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???

?

class ClassTest {
	var word : String;
	var number : float;
}

var variabletest : ClassTest;

Set this in some script, add the script to a game object, and look 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…??