void CreateTextureWithoutData () { // Create a new 2x2 texture ARGB32 (32 bit with alpha) and no mipmaps Texture2D texture = new Texture2D (2, 2, TextureFormat.ARGB32, false); // set the pixel values texture.SetPixel(0, 0, new Color(1.0f, 1.0f, 1.0f, 0.5f)); texture.SetPixel(1, 0, Color.clear); texture.SetPixel(0, 1, Color.white); texture.SetPixel(1, 1, Color.black); // Apply all SetPixel calls te
{{#tags}}- {{label}}
{{/tags}}