using UnityEngine; using System.Collections; public static class TextureExtensions { /// /// Determines whether this instance is bogus, i.e. the texture is the ? texture given by Unity. /// Unity does not give any error, so we have to check. /// Currently the check is very superficial and checks if the image is an 8x8. public static bool IsBogus(this Texture t) { return (t.width == 8 && t.height == 8); } }