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
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: