public static Texture2D CreatePixelTexture(string name, Color color) { var tex = new Texture2D(1, 1, TextureFormat.ARGB32, false, true); tex.name = name; tex.hideFlags = HideFlags.HideAndDontSave; tex.filterMode = FilterMode.Point; tex.SetPixel(0, 0, color); tex.Apply(); return tex; }