ButtonEvents

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void Start()
    {
        // Disable button events
        VInput.ButtonEvents = false;
    }

    void OnButton(int playerId, string elementName, bool state)
    {
        // This event will not fire...
        Debug.Log("Test output!");
    }
}

Activates or deactivates button input events in VolplaneBehaviour. This switch affects only the message / event system. Buttons can still be accessed through methods from VInput (e.g. GetButton()).