void OnEnable() { Application.targetFrameRate = 60; Screen.sleepTimeout = SleepTimeout.NeverSleep; #if UNITY_ANDROID QuitOnEscOrBack = true; #endif if (m_ARCamera == null) { m_ARCamera = GetComponent <Camera>(); } // Fallback to main camera if (m_ARCamera == null) { m_ARCamera = Camera.main; } if (m_ARInterface == null) { m_ARInterface = InsightARInterface.GetInterface(); } if (autoStartAR) { DoStartAR(); } Credentials credentials = new Credentials("IJBxcBtV9wbCvLLS87RZ51Lbwg5ZUIJaunIb1Fb5l-Lw", "https://gateway.watsonplatform.net/visual-recognition/api"); _visualRecognition = new VisualRecognition(credentials); }
void OnEnable() { Application.targetFrameRate = 60; Screen.sleepTimeout = SleepTimeout.NeverSleep; #if UNITY_ANDROID QuitOnEscOrBack = true; #endif if (m_ARCamera == null) { m_ARCamera = GetComponent <Camera>(); } // Fallback to main camera if (m_ARCamera == null) { m_ARCamera = Camera.main; } if (m_ARInterface == null) { m_ARInterface = InsightARInterface.GetInterface(); } if (autoStartAR) { DoStartAR(); } }
public void OnSwitchButtonClick() { InsightARInterface.GetInterface().SwitchCamera(); }