Quantcast
Channel: Answers for "GameObject FindGameObjectsWithTag in Order Up to Down"
Viewing all articles
Browse latest Browse all 4

Answer by KMKxJOEY1

$
0
0
I would use the Linq subset to order them by their position //this goes with the using statements using System.Linq; //get all the GO's //then order them by the x position foreach(GameObject go in GameObject.FindGameObjectsWithTag("YOUR_TAG_HERE") .OrderBy(x => x.transform.position.x);

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images