- Home /
Question by
thedodgeruk · Jul 23, 2012 at 01:23 AM ·
inspectorvariablespublic
what public variables can be shown and changed in the inspector
is there a list of variables that can used in the inspector i know floats , ints can be changed in the inspector as well as gameobjects, that can be dragged on to it , what other kinds are there ?
Comment
Best Answer
Answer by Bunny83 · Jul 23, 2012 at 03:02 AM
By default every public variable that can be serialized by Unity. A list of types that can be serialized can be found here.
In general you can show in the inspector what ever you want by creating a custom inspector for your class. However, editing variables that can't be serialized is pointless since the changes aren't saved.