GetCurrentView

public string GetCurrentView(int playerId);
public string GetCurrentView(VPlayer player);

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnConnect(int playerId)
    {
        // Gets the current view of the newly connected player
        Debug.Log(GetCurrentView(playerId));
    }
}

Gets the currently displayed controller view name of a player.

playerId The player identifier.
player A player object.