Class: BaseArea

BaseArea()

Base class common for TextArea and ImageArea, possibly more to come. Provides methods to attach the area to HUD or camera, and common variables.

Constructor

new BaseArea()

Source:

Classes

BaseArea

Members

handles :ManipulationHandles

Type:
Source:

Methods

attachToCamera(camera)

Attach it to the camera. It does not resize automatically, just sets the parent. It does not automatically switch to another camera if active camera changes.
Parameters:
Name Type Description
camera currently active camera
Source:

attachToHud()

Attach it to the HUD. It does not resize automatically, just sets the parent. Optionally also attaches handles to the hud, if they are active.
Source:

detach(offsetopt)

Detach from whatever attached to, i.e. drop it where you stand.
Parameters:
Name Type Attributes Default Description
offset number <optional>
this.position.z how far away from the camera to drop it, defaults to current z position (assuming it's attached to HUD or camera)
Source:

dispose()

Clean up allocated resources
Source:

isSelectableMesh()

XR pointer support
Source:

removeHandles()

Removes manipulation handles.
Source: