Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

convert built in array to javascript error

$
0
0
Hey guys. I'm trying to convert a built in array to a javascript array, but I keep getting this error message: ArgumentNullException: Argument cannot be null. Parameter name: collection UnityScript.Lang.Array.AddRange (IEnumerable collection) UnityScript.Lang.Array..ctor (IEnumerable collection) Here is my code: var st:GameObject[]; st=GameObject.FindGameObjectsWithTag("st"); Debug.Log(st[0]); Debug.Log(st[1]); Debug.Log(st[2]); Debug.Log(st[3]); var stp= new Array(st); Thanks for the help:)

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>