-
Notifications
You must be signed in to change notification settings - Fork 1
Player Customization
Sets a username and displays it over the network.
FlowVRPlayer.Instance.SetUsername(string username);
The Player's username is stored in PlayerPrefs.GetString("Username")
unless configured otherwise.
Sets a color and displays it over the network.
FlowVRPlayer.Instance.SetColor(Color color);
The Player's color is stored in PlayerPrefs.GetString("Color")
unless configured otherwise.
Enables or disables a cosmetic, depending on the parameters provided, and displays it over the network.
The cosmetic must be set up first in the Cosmetics struct located in the FlowVRPlayer prefab, or you will experience errors, and it will not work.
cosmetic
must be the same name as the GameObject set on the Cosmetic item struct.
FlowVRPlayer.Instance.SetCosmetic(string cosmetic, bool choice);
Each cosmetic that is set will create a entry in PlayerPrefs.
cosmeticobj
should be set to a GameObject inside of the FlowVR Player prefab.
Cosmetics will automatically sync for late joiners.
FlowVR stops syncing cosmetics over the network after 10 are enabled on a player.