Class: LoadProgressIndicator

LoadProgressIndicator(scene, camera)

Default progress indicator: rotating vrspace.org logo, 30 cm ahead, 5 cm below camera. Always bounds to active camera, to ensure same look and function on PC, mobile and VR devices.

Constructor

new LoadProgressIndicator(scene, camera)

Initializes VRSpaceUI, loading logo geometry so it can be reused. Installs active camera listener on the scene.
Parameters:
Name Type Description
scene
camera current camera to bind to
Source:

Classes

LoadProgressIndicator

Members

debug

Debug log flag
Source:

trackItems

Whether progress of individual items should be tracked. Default true rotates the logo only when an item loads. False results in continous rotation.
Source:

Methods

add(item)

Add an item to be tracked. First item added shows the indicator and starts the animation.
Parameters:
Name Type Description
item an item to track
Source:

animate()

Stops tracking individual items and runs contionous animation
Source:

progress(evt, item)

Call on load progress event.
Parameters:
Name Type Description
evt progress event
item related item
Source:

remove(item)

Remove an item, e.g. loaded file. Last item removed stops the animation and hides the indicator.
Parameters:
Name Type Description
item to remove
Source: