菜鸟教程小白 发表于 2022-12-12 13:34:56

ios - 在 ARKit 中要求 A9 进行 6DOF 跟踪


                                            <p><p>我正在使用 ARKit 开发一款 iOS 游戏。游戏概念仅在 <a href="https://developer.apple.com/documentation/arkit/arworldtrackingsessionconfiguration" rel="noreferrer noopener nofollow">6DOF tracking</a> 时有效可用,这意味着 <em>A9</em> 芯片或更新的芯片可用。 </p>

<p>我不希望用户在 iPhone 6 等旧设备上安装游戏 - 在这些设备上,ARKit 会回退到 3DOF 跟踪,这对我的游戏概念没有意义(我需要翻译跟踪)。</p>

<p>我该如何强制执行此限制,即该应用程序只能安装在支持 6DOF 的设备上(据我所知,这相当于 <em>iPhone 6S</em> 或更新版本或 <em>iPad Pro</em > 或更新,或<em>A9</em> 或更新)?</p>

<p>我查看了<a href="https://developer.apple.com/library/content/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html" rel="noreferrer noopener nofollow">iOS Device Compatibility Documentation</a>和 <a href="https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW3" rel="noreferrer noopener nofollow">UIRequiredDeviceCapabilities Reference</a>但没有找到合适的。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>它似乎还没有出现在 UIRequiredDeviceCapabilities 引用中,但正如 <a href="https://developer.apple.com/wwdc17/602" rel="noreferrer noopener nofollow">WWDC talk on ARKit</a> 中所述有一个 UIRequiredDeviceCapabilities 键:在其中使用 <code>arkit</code> 可确保您的应用仅提供给支持 6DOF 的设备。 </p>

<p>另外,澄清一下您的列表:支持 6DOF 的设备,也就是 A9(和更好的)设备包括...</p>

<ul>
<li>iPhone 6s 及更新机型</li>
<li>iPhone SE</li>
<li>任何 iPad Pro </li>
<li>第五代 iPad(只是“iPad”,但 2017 年 4 月推出的那一款)</li>
</ul></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在 ARKit 中要求 A9 进行 6DOF 跟踪,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/44681178/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/44681178/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在 ARKit 中要求 A9 进行 6DOF 跟踪