Skip to main content

setEditSnaps

Enables or disables the display of translation, rotation and scaling axes while editing objects.

Syntax

engine.objects.setEditAxes(position, rotation, scale);

Parameters

NameTypeDescription
positionnumberThe object's snap position value. Use null to reset to the default.
rotationnumberThe object's snap rotation value. Use null to reset to the default.
scalenumberThe object's snap scale value. Use null to reset to the default.

Example

// change all snaps to 1 meter
engine.objects.setEditSnaps(1, 1, 1);

Available on: Client