Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

ImageButton

David Peicho edited this page Sep 7, 2017 · 1 revision

Instanciation

You can create an ImageButton easily, by using (supposing texture is a THREE.Texture instance):

let button = new VRUI.view.ImageButton(texture);

But you can aslo directly create color:

let buttonColor = new VRUI.view.ImageButton(0xFF00FF); // Button with a uniclor icon

Or either with a material (suppose myMaterial is a THREE.Material instance):

let buttonColor = new VRUI.view.ImageButton(myMaterial); // Button using a custom material

Obviously, and for simplicity, we did not give the button any style, and it will take the default one.

Clone this wiki locally