setEditSnaps
Enables or disables the display of translation, rotation and scaling axes while editing objects.
Syntax
engine.objects.setEditAxes(position, rotation, scale);
Parameters
Name | Type | Description |
---|---|---|
position | number | The object's snap position value. Use null to reset to the default. |
rotation | number | The object's snap rotation value. Use null to reset to the default. |
scale | number | The 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