Skip to main content

ARScaleControl

class ARScaleControl implements ARControl

Model's scale controller which works on AR(WebXR) mode.

Properties
Methods

constructor

new ARScaleControl(options, options.min, options.max)

Create new instance of ARScaleControl

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
optionsARScaleControlOptions✔️{}Options
options.minnumber✔️0.05Minimum scale, default is 0.05(5%)
options.maxnumber✔️5Maximum scale, default is 5(500%)

Properties

enabled

readonly

Whether this control is enabled or not

range

readonly

Range of the scale

Methods

enable

Enable this control

disable

Disable this control