Classes
Methods
addButton(text, image, callback)
Create and add a holographic button to the panel.
Parameters:
Name | Type | Description |
---|---|---|
text |
to be rendered on pointer over, String or array of String | |
image |
url to display over the button | |
callback |
function called on pointer down, takes the button as the argument |
- Source:
beginUpdate(hasPrevious, hasNext, onPrevious, onNext)
Call this before consecutive addButton calls.
Parameters:
Name | Type | Description |
---|---|---|
hasPrevious |
true if previous button is to be rendered | |
hasNext |
true if next button is to be rendered | |
onPrevious |
callback to be executed when previous button is activated | |
onNext |
callback to be executed when next button is activated |
- Source:
buttonTextClear()
Internally called to remove tooltip on pointer exit
- Source:
buttonTextWrite()
Internally called to show tooltip text on pointer enter
- Source:
dispose()
Clean up
- Source:
endUpdate()
Call this after all buttons are added. Optionally relocates the panel.
- Source:
relocatePanel()
Relocate panel to given distance from the camera, by default 6
- Source: