如题,使用Unity2017.3版本与Vuforia 7 , 设计一个APP,其功能为:
主场景为AR场景扫描,副场景为识别目标图片后的场景(场景中有一个非ARcamera),问题在于从主切副时没有问题,副场景再次切回主场景时报错,
Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> UnityEngine.MissingReferenceException: The object of type 'Camera' has been destroyed but you are still trying to access it.
不知道如何解决,我的切换函数为LoadScene()
附:我最初的想法是进入主界面后识别开始,识别后跳转到其他场景,其他场景完成后跳回,且尽可能提高其运行速度,被困了估计两个星期了。。