If I had a buncha prefabs, could I have something where you choose one on a menu screen in game and for the rest of the game it swaps the default GO for the chosen GO? Practical Example Time: A parts select screen before a race. You could switch out different tire prefabs that look slightly different and have different scripts attached; switch out chassis that have different textures on them, etc.. Practical/doable? Thanks!
Yes, practical and doable for sure. It's just a matter of deciding how/where to store the selection information. Then when you load the car or whatever, you read the selection information and swap in/out GOs as necessary. Examples: - when the user selects their custom parts store that as a preference, then when you later load their vehicle read those prefs again and customize the vehicle - when the user selects their custom parts store that information in a persistent GO, then when you later load their vehilce query that persistent GO for the info and customize the vehicle I'm sure there are more ways to do it but it's all quite possible.
yes I used a persistent GO and a 'singleton class' (based off the fine example on the wiki) in TurretWars. http://www.unifycommunity.com/wiki/index.php?title=AManagerClass Cheers.