Rotation of the object.

I have to rotate my object along the y-axis. Should I used transform.rotate? How to use it?
Please, help.

Thanks.

call your object in the script as a game object then it will work…

For Example…

var object : GameObject;

function Update()
{

object.transform.rotation.y+=1;
}

This will rotate your object by 1 angle Continuously…