Fix a Compile Error

Your script prints to the Console now, so you can watch your own code run. This node breaks that script on purpose. You will delete one character, watch Unity turn red, read the message, and put the character back. It takes two minutes. It saves the hour a beginner loses the first time this happens by accident.

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