I am trying to change out a character Prefab using variables, however when I set: -------------------------------------------------------------------------- On the Character Conditional Prefab Settings this is what I have set:
value type: Game Variables Value: inBattle
Type String
Value Type: Value Value: true
Now, using a event I want to have the character switch out by changing the variable.
Var. Key value type: Game Variables Value: inBattle
You need the Value Type of the variable key to Value if you're defining the variable key. Using the Game Variable value type means that the variable key you're using is stored in the string game variable with the key you've defined.
See the how-to on game variables for more information.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
See the how-to on game variables for more information.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Instead, using value was it. Perfect thank you!