Esempio n. 1
0
        void InitializeProjectBindManager(VisualElement rootVisualElement)
        {
            m_LastCreateBlockOrganization = L10n.Tr(k_SelectOrganizationText);
            m_LastReuseBlockOrganization  = L10n.Tr(k_SelectOrganizationText);
            m_LastReuseBlockProject       = L10n.Tr(k_SelectProjectText);
            rootVisualElement.AddStyleSheetPath(k_ProjectBindCommonStyleSheetPath);
            rootVisualElement.viewDataKey = k_RootDataKey;
            rootVisualElement.AddStyleSheetPath(EditorGUIUtility.isProSkin ? k_ProjectBindDarkStyleSheetPath : k_ProjectBindLightStyleSheetPath);
            var projectBindTemplate = EditorGUIUtility.Load(k_ProjectBindTemplatePath) as VisualTreeAsset;

            rootVisualElement.Add(projectBindTemplate.CloneTree().contentContainer);
            projectBindContainer             = rootVisualElement.Q(k_ProjectBindContainerName);
            projectBindContainer.viewDataKey = k_BindContainerDataKey;

            m_CreateProjectIdBlock        = projectBindContainer.Q(k_CreateProjectIdBlockName);
            m_ReuseProjectIdBlock         = projectBindContainer.Q(k_ReuseProjectIdBlockName);
            m_LastCreateBlockOrganization = string.Empty;
            m_LastReuseBlockOrganization  = string.Empty;

            SetupCreateProjectIdBlock();
            SetupReuseProjectIdBlock();
            EditorGameServicesAnalytics.SendProjectBindDisplayEvent();
        }
Esempio n. 2
0
 static void OpenPackageManagerOnServicesFilter()
 {
     EditorGameServicesAnalytics.SendTopMenuExploreEvent();
     PackageManagerWindow.OpenPackageManagerOnFilter(ServicesConstants.ExploreServicesPackageManagerFilter);
 }
 static void OpenServicesGeneralSettings()
 {
     EditorGameServicesAnalytics.SendTopMenuGeneralSettingsEvent();
     SettingsService.OpenProjectSettings(k_ProjectSettingsPath);
 }