UnityEditor.TextureInspector.GetInfoString C# (CSharp) Method

GetInfoString() public method

public GetInfoString ( ) : string
return string
        public override string GetInfoString()
        {
            Texture target = base.target as Texture;
            Texture2D t = base.target as Texture2D;
            TextureImporter atPath = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(target)) as TextureImporter;
            string str = target.width.ToString() + "x" + target.height.ToString();
            if (QualitySettings.desiredColorSpace == ColorSpace.Linear)
            {
                str = str + " " + TextureUtil.GetTextureColorSpaceString(target);
            }
            bool flag = true;
            bool flag2 = (atPath != null) && atPath.qualifiesForSpritePacking;
            bool flag3 = IsNormalMap(target);
            bool flag4 = TextureUtil.DoesTextureStillNeedToBeCompressed(AssetDatabase.GetAssetPath(target));
            bool flag5 = (t != null) && TextureUtil.IsNonPowerOfTwo(t);
            TextureFormat textureFormat = TextureUtil.GetTextureFormat(target);
            flag = !flag4;
            if (flag5)
            {
                str = str + " (NPOT)";
            }
            if (flag4)
            {
                str = str + " (Not yet compressed)";
            }
            else if (!flag3)
            {
                if (flag2)
                {
                    TextureFormat format2;
                    ColorSpace space;
                    int num3;
                    atPath.ReadTextureImportInstructions(EditorUserBuildSettings.activeBuildTarget, out format2, out space, out num3);
                    string str2 = str;
                    string[] textArray1 = new string[] { str2, "\n ", TextureUtil.GetTextureFormatString(textureFormat), "(Original) ", TextureUtil.GetTextureFormatString(format2), "(Atlas)" };
                    str = string.Concat(textArray1);
                }
                else
                {
                    str = str + "  " + TextureUtil.GetTextureFormatString(textureFormat);
                }
            }
            else
            {
                switch (textureFormat)
                {
                    case TextureFormat.ARGB4444:
                        str = str + "  Nm 16 bit";
                        goto Label_01EF;

                    case TextureFormat.RGBA32:
                    case TextureFormat.ARGB32:
                        str = str + "  Nm 32 bit";
                        goto Label_01EF;
                }
                if (textureFormat == TextureFormat.DXT5)
                {
                    str = str + "  DXTnm";
                }
                else
                {
                    str = str + "  " + TextureUtil.GetTextureFormatString(textureFormat);
                }
            }
        Label_01EF:
            if (flag)
            {
                str = str + "\n" + EditorUtility.FormatBytes(TextureUtil.GetStorageMemorySize(target));
            }
            if (TextureUtil.GetUsageMode(target) != TextureUsageMode.AlwaysPadded)
            {
                return str;
            }
            int gPUWidth = TextureUtil.GetGPUWidth(target);
            int gPUHeight = TextureUtil.GetGPUHeight(target);
            if ((target.width == gPUWidth) && (target.height == gPUHeight))
            {
                return str;
            }
            return (str + string.Format("\nPadded to {0}x{1}", gPUWidth, gPUHeight));
        }