UnityEditor.TextureUtil.GetTextureFormatString C# (CSharp) Method

GetTextureFormatString() private method

private GetTextureFormatString ( TextureFormat format ) : string
format TextureFormat
return string
        public static extern string GetTextureFormatString(TextureFormat format);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

        public override string GetInfoString()
        {
            Texture       texture       = base.target as Texture;
            string        str           = texture.width.ToString() + "x" + texture.height.ToString();
            TextureFormat textureFormat = TextureUtil.GetTextureFormat(texture);

            return(str + "  " + TextureUtil.GetTextureFormatString(textureFormat));
        }
All Usage Examples Of UnityEditor.TextureUtil::GetTextureFormatString