public static bool IsAtlased(this PlaytimePainter p) { if (!p) { return(false); } var mat = p.Material; return(mat && mat.IsAtlased(p.GetMaterialTextureProperty())); }