- Home /
Question by
dansav · Feb 29, 2012 at 07:57 PM ·
arrayclasspragmamultidimensional
pragma strict create List of Array of strings for class?
I'm declaring a class that holds animation frames, each frame is a list of rotations which are strings.
for example animation[0].frames[0]=a list of strings.
pragma strict
class animation{
var name:String;
var frames:?
}
how do I declare the frames class using lists? I'm writing this with < as t because this field erases my tags. My guesses so far are not working... frames:[List.tStringt,List.tStringt?]
Thanks,
Comment
List t List t tring t t(); Doesn't work in unity but I find it in many examples. Where t = > or < close or open >
Best Answer
Answer by dansav · Mar 01, 2012 at 12:49 AM
This post seems to cover it. They're called Jagged Lists...
http://answers.unity3d.com/questions/42716/can-you-define-a-jagged-generic-list-in-unityscrip.html