Description
using UnityEngine;
using Volplane;
public class Demo : VolplaneBehaviour
{
void OnConnect(VPlayer player)
{
// Changes the view of the newly connected controller to "mainView".
player.ChangeView("mainView");
}
}
Changes the view of a players controller.
viewName | The name identifier of the view set in the controller editor. |