private void UpdateTrackingMessage(SmartAvailability smartAvailability) { if (Tracker.SMARTEnabled) { string sdk; if (Application.platform == RuntimePlatform.Android) { sdk = "ARCore"; } else if (Application.platform == RuntimePlatform.IPhonePlayer) { sdk = "ARKit"; } else { MessageBox.text = "Running without platform assisted tracking support."; return; } switch (smartAvailability) { case SmartAvailability.IndeterminateQueryFailed: { MessageBox.text = "Platform support query failed. Running without platform assisted tracking support."; break; } case SmartAvailability.CheckingQueryOngoing: { MessageBox.text = "Platform support query ongoing."; break; } case SmartAvailability.Unsupported: { MessageBox.text = "Running without platform assisted tracking support."; break; } case SmartAvailability.SupportedUpdateRequired: case SmartAvailability.Supported: { string runningWithMessage = "Running with platform assisted tracking support (" + sdk + ")."; if (_currentState == InstantTrackingState.Tracking) { MessageBox.text = runningWithMessage; } else { MessageBox.text = runningWithMessage + "\n Move your phone around until the target turns green, which is when you can start tracking."; } break; } } } else { MessageBox.text = "Running without platform assisted tracking support."; } }
private void UpdateTrackingMessage(SmartAvailability smartAvailability) { if (Tracker.SMARTEnabled) { string sdk; if (Application.platform == RuntimePlatform.Android) { sdk = "ARCore"; } else if (Application.platform == RuntimePlatform.IPhonePlayer) { sdk = "ARKit"; } else { return; } } }