Previous: Character Input Animator, Up: Character [Contents][Index]
NOTE: Character Selector implements character selection using the legacy Unity GUI. Not suitable for mobile.
Provide a list of characters, and send a message to this object when it’s time for character selection (ToggleOn & ToggleOff) to show the menu. This allows the player to switch characters mid-game
bool
showGUIShould we show the GUI right now?
Default value: false
Rect
guiAreaNormalized viewport rectangle indicating the button area. values between 0 and 1
Default value: new Rect(0.3f,0.3f,0.3f,0.3f)
bool
toggleCursorAllow this script to control the cursor?
Default value: false
bool
destroyCameraShould the camera be destroyed when switching characters?
Default value: true
float
maxDistanceIf greater than 0, close the GUI if the player leaves this radius. Assumes that the player is tagged ’Player’
Default value: 0.0f
int
windowIDUnique window ID number for this window, must not conflict with any others (change it if it does!)
Default value: 92829
GameObject
spawnPointWhere do we spawn the new player object?
List<GameObject>
charactersWhat characters can we select from?
Enables the character selection GUI
Disables the character selection GUI
Toggles the character selection GUI based on a supplied value
Argument: Should the character selection GUI be shown?
bool
showGUIShould we show the GUI right now?
Default value: false
Rect
guiAreaNormalized viewport rectangle indicating the button area. values between 0 and 1
Default value: new Rect(0.3f,0.3f,0.3f,0.3f)
bool
toggleCursorAllow this script to control the cursor?
Default value: false
bool
destroyCameraShould the camera be destroyed when switching characters?
Default value: true
float
maxDistanceIf greater than 0, close the GUI if the player leaves this radius. Assumes that the player is tagged ’Player’
Default value: 0.0f
int
windowIDUnique window ID number for this window, must not conflict with any others (change it if it does!)
Default value: 92829
GameObject
spawnPointWhere do we spawn the new player object?
List<GameObject>
charactersWhat characters can we select from?
Enables the character selection GUI
Disables the character selection GUI
Toggles the character selection GUI based on a supplied value
Argument: Should the character selection GUI be shown?
Previous: Character Input Animator, Up: Character [Contents][Index]