gpt4 book ai didi

c# - 当前上下文中不存在名称 'ARSubsystemManager'

转载 作者:行者123 更新时间:2023-11-30 15:13:39 26 4
gpt4 key购买 nike

我正在从事一个 AR 项目,以使用 Unity、AR Foundation 和 AR Core 跟踪 AR 事物。

我需要做的任务之一如下:

Write code to implement the 'systemStateChanged' callback from the ARSubsystemManager class.

我尝试通过以下方式实现:

ARSubsytemManager.systemStateChanged += OnStateChanged;

但不断出现以下错误:

The name 'ARSubsystemManager' does not exist in the current context

我该怎么做?

最佳答案

已经设法做到了。

我们可以在 the documentation 中读到,

The ARSubsystemManager has been removed in 2.0.

相反,我使用了 ARSession.stateChanged += OnStateChanged;

关于c# - 当前上下文中不存在名称 'ARSubsystemManager',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57558969/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com