Hi there guys.
I would like to know how to name a GameObject that has been set active. To better explain:
In this line of code : `GameObject room = (GameObject)Instantiate (availableRooms [randomRoomIndex]);`
A data type of GameObject is created and it is name "room".
In this line of code : `availableRooms [randomRoomIndex].SetActive (true);`
I am setting a GameObject active from an array, but I'm not sure how to store this GameObject as "room" when it is set active.
↧