Using a selected character

I want to make a screen with multipile characters for selection. After the selection of the character the game scene loads and the selected character is playing.
How can I make the selected character play without putting all characters in the game scene ? Like a general character that gets the form of the selected character .

Thank you

What have you tried so far?

–

i didnt try. I judt dont know

–

1 Answer

1
  1. Create buttons for selecting player
  2. When pressing button, value is stored via PlayerPrefs
  3. When loading next scene, value is retrieved form PlayerPrefs
  4. Either have all prefab in an array and instantiate the prefab corresponding to the value
  5. Have all prefab in Resources folder and fetch with the value and the create
  6. Watch picture of cute kittens to relax

For step 1:

For step 2 and 3:

For step 4:

http://docs.unity3d.com/ScriptReference/Array.html (See built in arrays)

For step 5:

For step 6:

Kitty pictures

Thank you very much! realy helpful

–