ResetView

public void ResetView(int playerId, string viewName);
public void ResetView(VPlayer player, string viewName);

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnConnect(int playerId)
    {
        // Resets the view "mainView" of the newly connected controller.
        ResetView(playerId, "mainView");
    }
}

Resets a view and all elements in it to its original state. This method will basically reload the view data exported by the controller editor.

playerId The player identifier.
player A player object.
viewName The name identifier of the view set in the controller editor.