GetBuildTargetGroupName() private méthode

private GetBuildTargetGroupName ( BuildTarget target ) : string
target BuildTarget
Résultat string
Exemple #1
0
        private string GetFixedPlatformName(string platform)
        {
            var targetGroup = BuildPipeline.GetBuildTargetGroupByName(platform);

            if (targetGroup != BuildTargetGroup.Unknown)
            {
                return(BuildPipeline.GetBuildTargetGroupName(targetGroup));
            }
            return(platform);
        }
Exemple #2
0
        protected override void InitializeExtraDataInstance(Object extraData, int targetIndex)
        {
            var settings      = extraData as PlatformSettings;
            var audioImporter = targets[targetIndex] as AudioImporter;

            if (settings != null && audioImporter != null)
            {
                // We need to sort them so every extraDataTarget have them ordered correctly and we can use serializedProperties.
                var validPlatforms = BuildPlatforms.instance.GetValidPlatforms().OrderBy(platform => platform.namedBuildTarget.TargetName);
                settings.sampleSettingOverrides = new List <AudioImporterPlatformSettings>(validPlatforms.Count());
                foreach (BuildPlatform platform in validPlatforms)
                {
                    var buildTargetGroup = platform.namedBuildTarget.ToBuildTargetGroup();
                    var platformName     = BuildPipeline.GetBuildTargetGroupName(buildTargetGroup); // override sample settings are per platform group
                    var sample           = audioImporter.GetOverrideSampleSettings(platformName);
                    settings.sampleSettingOverrides.Add(new AudioImporterPlatformSettings()
                    {
                        platform     = buildTargetGroup,
                        isOverridden = audioImporter.ContainsSampleSettingsOverride(platformName),
                        settings     = sample
                    });
                }
            }
        }
        public static string GetPlatformSettings(string platformName, string name)
        {
            string buildTargetGroup = BuildPipeline.GetBuildTargetGroupName(BuildPipeline.GetBuildTargetByName(platformName));

            return(GetPlatformSettings(buildTargetGroup, platformName, name));
        }
        public static void SetPlatformSettings(string platformName, string name, string value)
        {
            string buildTargetGroup = BuildPipeline.GetBuildTargetGroupName(BuildPipeline.GetBuildTargetByName(platformName));

            SetPlatformSettings(buildTargetGroup, platformName, name, value);
        }
Exemple #5
0
 internal static string GetBuildTargetGroupName(BuildTarget target)
 {
     return(BuildPipeline.GetBuildTargetGroupName(BuildPipeline.GetBuildTargetGroup(target)));
 }
Exemple #6
0
 public bool GetCompatibleWithPlatform(string platformName)
 {
     return(GetCompatibleWithPlatform(BuildPipeline.GetBuildTargetGroupName(BuildPipeline.GetBuildTargetByName(platformName)), platformName));
 }
Exemple #7
0
 public void SetCompatibleWithPlatform(string platformName, bool enable)
 {
     SetCompatibleWithPlatform(BuildPipeline.GetBuildTargetGroupName(BuildPipeline.GetBuildTargetByName(platformName)), platformName, enable);
 }
Exemple #8
0
 internal bool GetCompatibleWithPlatform(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget)
 {
     return(GetCompatibleWithPlatform(BuildPipeline.GetBuildTargetGroupName(buildTargetGroup), BuildPipeline.GetBuildTargetName(buildTarget)));
 }
Exemple #9
0
 internal void SetCompatibleWithPlatform(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget, bool enable)
 {
     SetCompatibleWithPlatform(BuildPipeline.GetBuildTargetGroupName(buildTargetGroup), BuildPipeline.GetBuildTargetName(buildTarget), enable);
 }
Exemple #10
0
 public static PluginImporter[] GetImporters(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget)
 {
     return(GetImporters(BuildPipeline.GetBuildTargetGroupName(buildTargetGroup), BuildPipeline.GetBuildTargetName(buildTarget)));
 }
Exemple #11
0
        private void OnGUI()
        {
            if (!Application.HasAdvancedLicense())
            {
                EditorGUILayout.HelpBox(BuildPipeline.GetBuildTargetAdvancedLicenseName(EditorUserBuildSettings.activeBuildTarget) + " is required for Occlusion Culling on " + BuildPipeline.GetBuildTargetGroupName(EditorUserBuildSettings.activeBuildTarget), MessageType.Warning);
                return;
            }
            if (OcclusionCullingWindow.s_Styles == null)
            {
                OcclusionCullingWindow.s_Styles = new OcclusionCullingWindow.Styles();
            }
            if (this.m_Mode != OcclusionCullingWindow.Mode.Visualization && !StaticOcclusionCullingVisualization.showPreVisualization)
            {
                this.m_Mode = OcclusionCullingWindow.Mode.Visualization;
            }
            EditorGUILayout.Space();
            this.ModeToggle();
            EditorGUILayout.Space();
            this.m_ScrollPosition = EditorGUILayout.BeginScrollView(this.m_ScrollPosition, new GUILayoutOption[0]);
            switch (this.m_Mode)
            {
            case OcclusionCullingWindow.Mode.AreaSettings:
                this.AreaSelectionGUI();
                break;

            case OcclusionCullingWindow.Mode.BakeSettings:
                this.BakeSettings();
                break;

            case OcclusionCullingWindow.Mode.Visualization:
                if (StaticOcclusionCulling.umbraDataSize > 0)
                {
                    this.CameraSelectionGUI();
                    GUILayout.FlexibleSpace();
                    GUILayout.Label(OcclusionCullingWindow.s_Styles.visualizationNote, EditorStyles.helpBox, new GUILayoutOption[0]);
                }
                else
                {
                    GUILayout.Label(OcclusionCullingWindow.s_Styles.noOcclusionData, EditorStyles.helpBox, new GUILayoutOption[0]);
                }
                break;
            }
            EditorGUILayout.EndScrollView();
            EditorGUILayout.Space();
            this.BakeButtons();
            EditorGUILayout.Space();
            this.SummaryGUI();
        }