Quantcast
Channel: Latest Questions by username132323232
Viewing all articles
Browse latest Browse all 58

Getting references to children objects.

$
0
0
I'm working on a 2D game that will show several cars with 2-3 text signs on each car (license plates, company names,...). I'm going to have a prefab with the car sprite and the text signs as children. Now, the text sighs should be updated periodically, so I need to get references to them inside the script. What is best practice in accessing the text signs from the prefab instance?

Viewing all articles
Browse latest Browse all 58

Trending Articles



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