private void EndSession() { if (currentSession != null) { currentSession.Pause(); currentSession = null; } if (currentSessionDelegate != null) { currentSessionDelegate = null; } }
private void PrepareARSession() { currentSession = new ARSession(); currentSessionDelegate = new ARKitSessionDelegate(); currentSession.Delegate = currentSessionDelegate; }