swift - Reality Composer 默认锚点
问题描述
当您使用 Reality Composer 创建任何场景时,您必须首先选择哪种类型的锚点“地板、墙壁、面、对象”,这意味着当您加载场景时,它会自动将其放置到指定的锚点。
我的问题是,有什么方法可以从代码中手动设置它,以便我例如进行命中测试,然后手动将其锚定到特定点?
谢谢。
解决方案
官方文档没有提及能够在运行时更改默认锚点,但从您的描述看来,您可以Select Object Anchoring to Place a Scene Near Detected Objects
按照此处所述尝试:
https ://developer.apple.com/documentation/realitykit/creating_3d_content_with_reality_composer/selecting_an_anchor_for_a_reality_composer_scene
推荐阅读
- bash - 如何重新定位每行的第三个字符串以从同一行的第 n 个字符开始
- flutter - Flutter 全局函数更新 Stateful Widget 状态
- c - char数组的不同赋值方法
- graphql - GraphQL 错误:String 类型的变量 $customerAccessToken!提供了无效值
- excel - 无法让 WSCript.Shell 对象的 Run 方法工作
- flutter - 如何使用 SharedPreferences 保存数据类型映射
- flutter - 在 Dart 中使用带有构造函数的 Setter
- vue.js - 从rest api vue中获取
- assembly - Risc-V:条件分支到下一条指令的时间是多少?
- react-native - 如何在本机反应中将项目数据传递到模态