Why Time.deltaTime

The paddle drifts up the screen now, and the line that moves it ends with something nobody has explained yet. Time.deltaTime looks like noise stuck on the end of the math. It is the most important part of that line. Without it your game plays differently on every computer it runs on, including your friend's.

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