- Home /
Question by
Tofudude624 · Jan 31, 2012 at 05:02 AM ·
c#javascript
Converting C#?
Hello. I want to set up something like this (fifth post down), where I create a class to simulate having a multi-dimensional array that can be edited through the inspector. The only problem is, I have no C# knowledge and I was wondering if someone would convert that code to javascript? Thanks (yes, I know i need to learn C#).
Comment
Best Answer
Answer by syclamoth · Jan 31, 2012 at 05:08 AM
This kind of stuff is actually virtually the same in Javascript. While I wouldn't know how to do anything complex (operator overloading, nice intergration stuff), the basics are easy.
class TransformArray
{
var arr : Transform[] = new Transform[3];
}
var multiDimArray : TransformArray[] = new TransformArray[3];
Thanks (you have helped me on this whole multi-array issue several times today).