- Home /
Question by
dansav · Sep 15, 2013 at 06:23 AM ·
javascriptarrayinsert
unityscript equivalent of javascript splice?
I want to insert two items at position n in an array. In javascript I would use splice to do this. Is there an equivalent in unityscript for the unityscript javascript-like array type.
Comment
Answer by Eric5h5 · Sep 15, 2013 at 06:42 AM
Do not ever use the JS Array class. Use generic Lists instead, then you can use Insert, InsertRange, etc.