Class: ScrollablePanel

ScrollablePanel()

A 3D panel displayed in the world, with arbitrary number of holographic buttons. Each button must have text and image. Text is displayed when pointer is over the button, and it can be either 3D (framerate impact) or texture (readability impact). This is controlled by text3d property, false by default.

Constructor

new ScrollablePanel()

Source:

Classes

ScrollablePanel

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: