O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Update

Update is called for every frame, if MonoBehaviour is enabled.

Update is the most commonly used function to implement any kind of game behavior.

Example

// Moves the object forward 1 meter per second
function Update () {
  transform.Translate(0, 0, Time.deltaTime*1);
}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required