Fading objects towards camera

Hi,

Just wondering if anyone can recommend a good way to achieve this whilst keeping the screen objects click-able?

edit
Sure, I have a camera translating along the Z-axis inside a tunnel with objects ahead. What I would like is for the objects that approach the camera to fade to transparent when a certain distance away. Now, I have tried an approach using a trigger collider placed in front of the camera that detects the object colliders and fades their renderer. This works well but as both the OnCollisionEnter() and OnTriggerEnter() functions both require collider components, it means that I cannot click through this fading collider box to control the player, etc.

Thanks in advance

You could add something like this to the objects:

if(Vector3.Distance(transform.position, Camera.main.transform.position) > fadeDistance)
{
//fade out
}