ChangeElementText

public void ChangeElementText(string elementName, string text);

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    private VPlayer p;

    void OnConnect(VPlayer player)
    {
        // Store reference to player object
        if(p == null)
            p = player
    }

    void Update()
    {
        // Changes a text of an element on button press
        if(VInput.GetButtonDown(p, "button"))
        {
            p.ChangeElementText("text", "Hello World!");
        }
    }
}

Changes the text of an element on the current view.

 

elementName The name identifier of the element set in the controller editor.
text The new text.