Quantcast
Channel: Questions in topic: "icon"
Viewing all articles
Browse latest Browse all 271

FindGameObjectsWithTag and add rotation?

$
0
0
Hello, I have multiple Icons on my map that should all rotate around the y-axis and I don't know how to interagate with them all stored in that findgameobjectswithtag-array: private var icons : GameObject[]; function Start () { icons = GameObject.FindGameObjectsWithTag("Icons"); } function Update () { icons.gameObjects.transform.Rotate(Vector3.up); }

Viewing all articles
Browse latest Browse all 271

Trending Articles