- Home /
Car Selection...
How can I make a car selection screen for my game? For example I want to choose from different cars and the car that i selected will be the car that i'll be driving in my (island level-example)... It's something related about Object.Don't DestroyOn Load script?
Answer by skovacs1 · Dec 13, 2010 at 08:24 PM
There are several ways to do this. Here are a few:
To switch cars in one scene:
- You could do something as simple as turning renderers on and off.
- For most games, the more reasonable solution is to destroy the current instance of your car and instantiate a prefab for a different one and/or replace specific car parts, if your game includes that level of customization.
To drive that vehicle in a different scene:
- You could simply call DontDestroyOnLoad before loading your other scene with something like
DontDestroyOnLoad(transform.gameObject);
- You could store some static variable somewhere indicating the prefab to use and then instantiate the appropriate prefab in the second scene.
and what about $$anonymous$$ainCamera to lookAt Target??
How can we get ride of that kind of spammer ? I think I need more karma to use the "suspend this user" option in moderation, and the bot can still use comments, which can't be reported. Da'fuk, I'd say.
Your answer
![](https://koobas.hobune.stream/wayback/20220613090915im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I add bots in android? 2 Answers
script help gameobject to playercar 1 Answer
car water floating script help. 2 Answers
Car steering control 1 Answer