Catagories

Friday 10 December 2010

Side Scrolling Camera

Script for simple side scrolling camera. Attach the script to your main camera.

var Target : Transform;

function Update () {
transform.position = Target.position + Vector3(0, 0, -3);

}

1 comment:

  1. I can not see inside the objects i put into unity such as the cube. so i can't see where positioning things in the cube...I can only see the outside!!! :O

    ReplyDelete