Playerpref.SetInt(“CharacterSelected”,Index);
I want the line of code to make it so the character selected gets tag “Player”
Playerpref.SetInt(“CharacterSelected”,Index);
I want the line of code to make it so the character selected gets tag “Player”
PlayerPrefs is for storing data on persistant media (like a disk, or static memory). If you want to set the tag attribute of an object, you should use playerObject.tag = “Player” or similar.