unlit transparent shader: How to add alpha composition combined with the texture alpha

Hi,

Ok, I have an unlit transparent shader that works very well, but I need to compose it with the rest of the scene and control it's transparency.

So really I am looking into having a alpha value exposed in the material settings that I is composed with the texture alpha channel so that I can make it completly transparent.

How would I do that shader gurus :)

Thanks for your help,

Jean

It's been a few hours. If this isn't good, post what you had, and I'll combine the two.

Shader "I Assume You Named It Already" {

Properties {
    _Opacity ("Opacity Mod", Range(0,1)) = 1
    _MainTex ("Texture (A = Opacity)", 2D) = ""
}

SubShader {
    Tags {Queue = Transparent}
    ZWrite Off
    Blend SrcAlpha OneMinusSrcAlpha
    Pass {
        ConstantColor(0,0,0, [_Opacity])
        SetTexture[_MainTex] {Combine texture, texture * constant}
    }
}

}