Class: BoxEditor

BoxEditor

new BoxEditor(viewer, box)

Box editor class, used for editing boxes, can activate, deactivate, and destroy the editor.

Name Type Description
viewer Viewer

The current viewer.

box Entity

Set an editor for the box object to be edited.

Members

colorColor

Get or set the color of the box.

Default Value:
Color.WHITE

hoverColorColor

Get or set the color selected for editing the axis.

Default Value:
Color.RED

Methods

activate()

Activate the box editor.

clear()

Clear the editor.

deactivate()

Make the box editor ineffective.

destroy()

Destroy the box editor.

setEditObject(editObject)

Set the editing object for the editor.

Name Type Description
editObject Object

The box object to be edited.