Optional
app: AppOptional
options: ToolStateModuleOptionsOptional
_appProtected
_destroyedReadonly
instanceStatic
moduleWhether it has been destroyed.
Indicates whether the component is enabled.
移除监听.
Event name
Optional
fn: FunctionFunction, If is undefined, delete all corresponding event listeners.
增加监听
Event name
Function
This
只监听一次.
Event name
Function
This
Set the selected tool.
Optional
id: stringThe id of the tool to select.
Optional
info: Record<string, any>Arbitrary data to pass along into the transition.
app.setCurrentTool('transform')
app.setCurrentTool("draw.drawpolygon", {color: 0xff0000})
对一个物体进行变换控制器操作
EntityBase.