示例#1
0
 public override void OnResourceGUI()
 {
     EditorGUILayout.BeginHorizontal();
     ResUtils.ColorLabelFieldTooltip(Title_Shader, shader.name, string.Format(Format_Shader, ResourceAuditingSetting.GetIntance().Shader_Forbid), shaderLevel);
     EditorGUILayout.ObjectField(Title_Empty, mat.shader, typeof(Shader), false);
     EditorGUILayout.EndHorizontal();
 }
示例#2
0
 public void DisplayPlatformSetting(AudioPlatformNorm apn)
 {
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.LabelField(Platform, apn.platform);
     ResUtils.ColorLabelFieldTooltip(Title_LoadType, apn.setting.loadType.ToString(), string.Format(Formnat_LoadType, apn.recommendloadType), apn.loadTypeLevel);
     ResUtils.ColorLabelFieldTooltip(Title_CompressionFormat, apn.setting.compressionFormat.ToString(), string.Format(Formnat_CompressionFormat, apn.recommendCompressionFormat), apn.compressionFormatLevel);
     EditorGUILayout.EndHorizontal();
 }
示例#3
0
        public void DisplayPlatformSetting(TexturePlatformNorm tpn)
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(Platform, tpn.setting.name);
            //format
            string format = tpn.setting.format.ToString();

            ResUtils.ColorLabelFieldTooltip(Title_Format, format, string.Format(Formnat_Format, tpn.normRecommend), tpn.formatLevel);
            ResUtils.ColorLabelFieldTooltip(Title_MaxSize, tpn.setting.maxTextureSize.ToString(), string.Format(Formnat_MaxSize, tpn.setting.maxTextureSize), tpn.maxSizeLevel);
            EditorGUILayout.EndHorizontal();
        }
示例#4
0
 public override void OnResourceGUI()
 {
     ResUtils.ColorLabelFieldTooltip(Title_FileType, fileType, Formnat_FileType, fileLevel, 150);
     ResUtils.ColorLabelFieldTooltip(Title_ReadAndWrite, textureImporter.isReadable.ToString(), string.Format(Formnat_ReadAndWrite), !textureImporter.isReadable, 150);
     ResUtils.ColorLabelFieldTooltip(Title_TextureRealSize, textureSize.ToString(), string.Format(Formnat_TextureRealSize, ResourceAuditingSetting.GetIntance().Tex_Max_Size), textureSizeLevel, 150);
     EditorGUILayout.BeginVertical();
     DisplayPlatformSetting(standalone_setting);
     DisplayPlatformSetting(ios_setting);
     DisplayPlatformSetting(android_setting);
     EditorGUILayout.EndVertical();
 }
示例#5
0
 public override void OnResourceGUI()
 {
     ResUtils.ColorLabelFieldTooltip(string.Format(Title_AudioLength, setting.autioLengthThreshold),
                                     string.Format(Content_AudioLength, clip.length, autioType),
                                     string.Format(Formnat_AudioLength, setting.autioLengthThreshold), 0, 200);
     ResUtils.ColorLabelFieldTooltip(Title_Preload, clip.preloadAudioData.ToString(), Formnat_Preload, !clip.preloadAudioData, 200);
     ResUtils.ColorLabelFieldTooltip(Title_loadInBackground, clip.loadInBackground.ToString(), Formnat_loadInBackground, clip.loadInBackground, 200);
     EditorGUILayout.BeginVertical();
     DisplayPlatformSetting(ios_setting);
     DisplayPlatformSetting(android_setting);
     EditorGUILayout.EndVertical();
 }
示例#6
0
        private void DrawMeshInfo(Mesh mesh)
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.ObjectField("", mesh, typeof(Mesh), false);
            int level = 0;

            if (mesh.triangles.Length > ResourceAuditingSetting.GetIntance().Mesh_Recommend_TrisNum&& mesh.triangles.Length <= ResourceAuditingSetting.GetIntance().Mesh_Max_TrisNum)
            {
                level = 1;
            }
            else if (mesh.triangles.Length > ResourceAuditingSetting.GetIntance().Mesh_Max_TrisNum)
            {
                level = 2;
            }
            ResUtils.ColorLabelFieldTooltip(Title_TrisNum, mesh.triangles.Length.ToString(), string.Format(Format_TrisNum, ResourceAuditingSetting.GetIntance().Mesh_Max_TrisNum), level);
            EditorGUILayout.EndHorizontal();
        }