swift - 如何在 RealityKit 中隐藏 ModelEntity?
问题描述
ModelEntity
Reality Composer 中有隐藏模型,但在 RealityKit 中找不到任何关于隐藏实体的文档。
像这样的东西:
SCNNode ---- hidden
一个布尔值,用于确定节点内容的可见性。动画。
解决方案
看看isEnabled,我相信它和SCNNode.hidden一样
https://developer.apple.com/documentation/realitykit/entity/3244077-isenabled
推荐阅读
- javascript - 如何使像谷歌这样的对话框保持在纯js和css中
- powershell - 输出和简单的算法问题面向对象
- python - Sklearn Python VS MLmetrics R中的Rsquared
- c++ - 令人困惑的 websocket tls 功能
- javascript - 如何用新的输入 -java 脚本替换文本框中的内容
- java - 将 Java 对象保存到文件
- arrays - Numpy:如何用另一列替换 numpy 数组中的列?为什么这个例子不起作用?
- firebase - Firebase 函数 admin sdk 获取云存储对象的下载 url:权限被拒绝
- azure - 使用单独的前端和后端应用程序进行 Azure AD 代表身份验证
- python - 如何从 Python 中的单个输入中删除列表的两个或多个对象?