Quantcast
Viewing latest article 7
Browse Latest Browse All 14

Can not access sub objects

I can't seem to access sub objects of an array of objects. I've tried the suggestions in the Answers, but I still keep getting error messages. One says that things are "not a member of Object". The latest error says: **ApplicationException: Argument is not enumerable (does not implement System.Collections.IEnumerable). Boo.Lang.Runtime.RuntimeServices.GetEnumerable (System.Object enumerable)** What I am trying to do is have 10 levels each with 12 sphere triggers in. When a whole level is triggered at the same time an action takes place. But to do this I need to be able to access the levels ID and the ID of each of the sub objects. Pleas can someone help? This is my latest script (It brings up the above error message). var levels: Array; var level: Array; var thisLevel: GameObject; var triggerSphere: Transform[]; function Start () { levels = GameObject.FindGameObjectsWithTag ("Level"); for (level in levels) { Debug.Log ("Level = " + level); for (var tS: GameObject in level){ } } }

Viewing latest article 7
Browse Latest Browse All 14

Trending Articles



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