static async Task OnChangePlayModeAsync(PlayModeStateChange playMode)
        {
            if (playMode != PlayModeStateChange.EnteredPlayMode)
            {
                return;
            }
            await PackageListRepository.UpdatePackageList();

            XRSettings.enabled = SwitchUseVR.EnabledVR();
        }
示例#2
0
        static async void AsyncInitialize()
        {
            await PackageListRepository.UpdatePackageList();
            var packageStates = new PackageStates(
                PackageListRepository.Contain("timeline"),
                PackageListRepository.Contain("textmeshpro"),
                PackageListRepository.Contain("postprocessing"),
                PackageListRepository.Contain("openvr")
            );

            PackageInstallerWindow.ShowWithState(packageStates);
        }