Positions

Hi all, just a quick one. I was wondering if I could set a permeant position for a camera on the y axis. I still want the camera to move on the other axis but keep a set position on the y. Not sure if I can do this or how I would go about doing. Thanks for the help

Try this:

var height = 0.0;

function Update ()
{
     transform.position.y = height;
}