/// <inheritdoc/> public override void Closing(bool isCompleted) { if (isCompleted && wasApplied) { AnalyticsEvent hardwareSelectedEvent = new AnalyticsEvent { Category = "creator", Action = "hardware_selected", Label = selectedLoader == XRLoader.Other ? otherHardwareText : selectedLoader.ToString() }; AnalyticsUtils.CreateTracker().Send(hardwareSelectedEvent); switch (selectedLoader) { case XRLoader.Oculus: XRLoaderHelper.LoadOculus(); break; case XRLoader.OpenVR: XRLoaderHelper.LoadOpenVR(); break; case XRLoader.WindowsMR: XRLoaderHelper.LoadWindowsMR(); break; } } }
internal static void Show() { WizardWindow wizard = EditorWindow.CreateInstance <WizardWindow>(); List <WizardPage> pages = new List <WizardPage>() { new WelcomePage(), new TrainingSceneSetupPage(), new AnalyticsPage(), new AllAboutPage() }; int xrSetupIndex = 2; #if CREATOR_PRO if (CreatorPro.Account.UserAccount.IsAllowedToUsePro() == false) { pages.Insert(1, new CreatorPro.Core.CreatorLoginPage()); xrSetupIndex++; } #endif bool isShowingXRSetupPage = EditorReflectionUtils.AssemblyExists(XRInnoactiveAssemblyName); isShowingXRSetupPage &= EditorReflectionUtils.AssemblyExists(XRAssemblyName) == false; isShowingXRSetupPage &= XRLoaderHelper.GetCurrentXRConfiguration() .Contains(XRLoaderHelper.XRConfiguration.XRLegacy) == false; if (isShowingXRSetupPage) { pages.Insert(xrSetupIndex, new XRSDKSetupPage()); } wizard.WizardClosing += OnWizardClosing; wizard.Setup("Innoactive Creator - VR Training Setup Wizard", pages); wizard.ShowModalUtility(); }