setEntityVisible
此内容尚不支持你的语言。
setEntityVisible(
world,entity,visible):void
Defined in: ecs/entityUtils.ts:41
Show or hide an entity.
A UI node hides through display, which the layout pass resolves down the
tree — hiding a panel hides everything under it, and that is what hiding a UI
element means. Nothing else has hierarchical visibility in the runtime, so
for the rest the write lands on this entity’s own renderers and its children
keep drawing.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
visible
Section titled “visible”boolean
Returns
Section titled “Returns”void