输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightcolor | string | 是 | #FFFFFF | 光源颜色 |
调用
typescript
piclient.emit("light.color",{
target: "ObjectId", //场景中的光源
lightcolor: "#FFFFFF", //光源颜色
})
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightcolor | string | 是 | #FFFFFF | 光源颜色 |
piclient.emit("light.color",{
target: "ObjectId", //场景中的光源
lightcolor: "#FFFFFF", //光源颜色
})