Texture2D: pixel Specific alpha not working?

Hi I basically want a texture with different pixels having different alpha values and this is not working…

`
public var alpha:float;
function Start () {

    // Create a new 2x2 texture ARGB32 (32 bit with alpha) and no mipmaps
    var texture = new Texture2D(2, 2, TextureFormat.ARGB32, false);
 
    texture.SetPixel(1, 0, Color(1.0, 0, 0, alpha));  
    texture.SetPixel(1, 0, Color.white);
    texture.SetPixel(0, 1, Color.green);
    texture.SetPixel(1, 1, Color(0,0,1,0.7));
    // Apply all SetPixel calls
    texture.Apply();

    // connect texture to material of GameObject this script is attached to
    renderer.material.mainTexture = texture;

} 

`

methinks your shader that you use for testing doesn’t use alpha.

select Transparent-Diffuse shader in material to see alpha effect.

Thank you but it is not working
3022-texture.png

I want different pixels with different alpha…

This is a Hexagon on a rectangular plane the hexagon has a alpha value of 1(RGBA : 1,1,1,1) and the remaining area has value of .001 (RGBA : 0,0,0,0.001) I want the hexagon to be real opaque but it is not. 3074-texture.png transparent/diffuse
I’ve also uploaded the texture (.js)

[3075-tex.txt|3075]

I got what I want… The right mode is Unlit/Transparent 3077-texture.png