UnityEditor.TextureUtil.IsValidTextureFormat C# (CSharp) Method