设置对象标记
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的任意对象 |
tag | string | 是 | — | — |
displayName | string | 是 | — | 视图大纲中的名称 |
newTag | string | 是 | — | — |
clear | boolean | 是 | true | 清除模型自身Tag |
调用
typescript
//调用触发事件
piclient.emit("object.setTag",{
target: "ObjectId", //场景中的任意对象
tag: "",
displayName: "", //视图大纲中的名称
newTag: "",
clear: true, //清除模型自身Tag
})