ChangeViewImage

public void ChangeViewImage(string viewName, string image);

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()
    {
        // Change view background image
        // on button press
        if(VInput.GetButtonDown(p, "button"))
        {
            p.ChangeViewImage("mainView", "new-background.jpg");
        }
    }
}

Changes the background image of a controller view. Specified image must exist in the img folder in the WebGL template: Assets/WebGLTemplates/Volplane/img/ (images and fonts in your controller).

 

viewName The name identifier of the view set in the controller editor.
image The image name (including extension).