Hey guys!
Short question,
I’ve made an Array of GameObjects using FindGameObjectWithTag, and now I want to take the transforms off those GameObjects and put them in a Transform Array, how should I formulate this?
GameObject[] taggedWaypoints = GameObject.FindGameObjectsWithTag("Waypoint");
Transform[] waypoints = taggedWaypoints[].GetComponent<Transform>; // this is definitely wrong, how do I correct this?