Is it called something else?
1 Answer
1Take a look at the scripting reference. There is no slice function in Unityscript since basically it has nothing to do with (web) javascript. It's just a similar syntax. Anyways, the scripting reference have a link right at the top to .Net's ArrayList. The function GetRange should do what you want.
Sure, Unity don'e link to things that won't work in Unity. The whole scripting engine of Unity is bulid on top of mono. Mono is an open source "clone" of microsoft's .NET so every language you can use in Unity (JS, C# and Boo) compiles to the mono CLI. That's why you can use almost the whole .Net framework. Maybe you need to import it first. I don't use JS very much. JS seems to imort certain libs automatically but not everything. System.Collections should be already available but you can try to import it at the top of your script
– Bunny83