public static int GetInputDelay(int playerId, string elementName);
public static int GetInputDelay(VPlayer player, string elementName);


using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
    public int playerId;

    void Update()
        if(VInput.GetButtonDown(playerId, "myButton"))
                "Input delay: {0:D}ms",
                GetInputDelay(playerId, "myButton")

Returns the client to server delay from an input on a players controller in milliseconds. This will help fixing latency issues (e.g. deciding which input came first etc...).


playerId The player identifier.
player A player object.
elementName The name identifier of the input element set in the controller editor.