fade textured object in / out

Hi,

I would like to fade a textured (diffuse) object out and in (transparent) with scripting.
I want to fade the whole object and not only parts of the texture.

How does the shader code for this look like ?
And which line of script I can use to change the transparence ?

First you should change the shader on the object to Alpha/Diffuse (or something like that). This can be done with Shader.Find. Then you change the color’s alpha component over time to fade out, similar to code example here.

IIRC, ThirdPerson example project here has a script to fade objects in/out based on whether they are obstructing the view from camera to the player or not.