输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightIntensity | number | 是 | 0.0 | 光源强度 |
调用
typescript
piclient.emit("light.intensity",{
target: "ObjectId", //场景中的光源
lightIntensity: 0.0, //光源强度
})
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightIntensity | number | 是 | 0.0 | 光源强度 |
piclient.emit("light.intensity",{
target: "ObjectId", //场景中的光源
lightIntensity: 0.0, //光源强度
})