Read the Keyboard

The Input System package is installed and Active Input Handling is set, so your script can finally ask the keyboard a question. This node does not move the paddle yet. It reads W and S, turns them into a single number, and prints that number to the Console. Watching the input arrive on its own makes the node that uses it much easier.

More in Set Up the Input System

  1. Read the Keyboard
    1. Ask a Question With if
  2. Move a Paddle
    1. Keep the Paddle On Screen
  3. Add the Second Paddle

All 54 topics in the Your First Unity Game