Quantcast
Channel: Questions in topic: "datatype"
Viewing all articles
Browse latest Browse all 87

How to name a GameObject that is set active

$
0
0
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.

Viewing all articles
Browse latest Browse all 87

Trending Articles



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