首页 > 解决方案 > 如何在 RealityKit 中隐藏 ModelEntity?

问题描述

ModelEntityReality Composer 中有隐藏模型,但在 RealityKit 中找不到任何关于隐藏实体的文档。

像这样的东西:

SCNNode ---- hidden

一个布尔值,用于确定节点内容的可见性。动画。

标签: swiftaugmented-realityarkitrealitykit

解决方案


看看isEnabled,我相信它和SCNNode.hidden一样

https://developer.apple.com/documentation/realitykit/entity/3244077-isenabled


推荐阅读