object.visible

对象-显示隐藏

模块:Objects调用:piclient.emit('object.visible', {...})

显示隐藏对象

输入

参数类型必填默认值说明
targetstringObjectId单个目标
targetsarray[Object1, Object2, Object3, ...]多个目标,单个目标和多个目标互斥,使用哪个另一个就需要删掉
tagstring
tagsarray[Object1, Object2, Object3, ...]多个目标,单个目标和多个目标互斥,使用哪个另一个就需要删掉
visiblestringtoggle可见性 show / hide / toggle
bAffectChildstringtruetrue/false
可选值:truefalse

输出

参数类型必填默认值说明
result示例数据

调用

typescript
piclient.emit("object.visible",{
	target: "ObjectId",//单个目标
	targets: [Object1, Object2, Object3, ...],//多个目标,单个目标和多个目标互斥,使用哪个另一个就需要删掉
	tag: "",
	tags: [Object1, Object2, Object3, ...],//多个目标,单个目标和多个目标互斥,使用哪个另一个就需要删掉
	visible: "toggle",//可见性 show / hide / toggle
	bAffectChild: "true", //true/false
})
← 返回 Objects 模块