Only seems to affect iOS devices.
Is there a way to stop this from happening?
Only seems to affect iOS devices.
Is there a way to stop this from happening?
It’s related to this issue. It happens the second time you disable the AR subsystems (this would happen after scene switching a couple of times). The fix is ready and working its way through QA. We should be able to release an update soon.
ah, thanks!
Was there an update on this? It’s kind of a showstopper for us as with others commenting in that issue.
When I leave an ARFoundation scene and go back in (game > titlescreen > game) AR flatout stops working and I get a bunch of errors in XCode about planemanager.
NullReferenceException: A null value was found where an object instance was required.
at UnityEngine.MonoBehaviour.StartCoroutine (IEnumerator routine) [0x00000] in <filename unknown>:0
at System.Action`1[T].Invoke (.T obj) [0x00000] in <filename unknown>:0
at System.Action`1[T].Invoke (.T obj) [0x00000] in <filename unknown>:0
at System.Action`1[T].Invoke (.T obj) [0x00000] in <filename unknown>:0
at UnityEngine.XR.ARFoundation.ARSubsystemManager.OnPlaneAdded (PlaneAddedEventArgs eventArgs) [0x00000] in <filename unknown>:0
at System.Action`1[T].Invoke (.T obj) [0x00000] in <filename unknown>:0
at UnityEngine.Experimental.XR.XRPlaneSubsystem.InvokePlaneAddedEvent (BoundedPlane plane) [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
I don’t think this is related. Are you unregistering from the planeadded event in ondisable?
void OnDisable()
{
ARSubsystemManager.planeAdded -= OnPlaneAdded;
}
thank you! All fixed