TouchEvents

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void Start()
    {
        // Disable touch area events
        VInput.TouchEvents = false;
    }

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

Activates or deactivates touch area input events in VolplaneBehaviour. This switch affects only the message / event system. Touch areas can still be accessed through methods from VInput (e.g. GetCoordinates()).