Move With Code

The Console proved that Update runs on every single frame. That repetition is the whole trick. One line of arithmetic inside Update, run again on the next frame and the one after that, is what movement looks like in Unity. Open PaddleController and clear the test prints out of the way first.

More in Write Your First Script

  1. Start and Update
  2. Fix a Compile Error
  3. Move With Code
    1. Why Time.deltaTime
    2. What a Vector3 Is
    3. Use Public Variables

All 54 topics in the Your First Unity Game