Skip to content
ShAdowDev16 edited this page Dec 19, 2024 · 4 revisions

<- Back

Player

Setting the local player's color

This will change the local player's color to the preferred color.

Arguments:

  1. Color color The color to change the player's color to.

Example:

  • MirrorVRManager.SetColor(new Color(255, 255, 255));

Setting the local player's username

This will change the local player's username to the preferred name.

Arguments:

  1. string username The new player username
  2. bool SaveWithPref Should the username be saved with Unity Player Prefs?

Example:

  • MirrorVRManager.SetUsername("Testusername", true);
Clone this wiki locally