Pathways
LiveEducator Hub
  • Sidebar node image
    tutorial
    Add damage zones to decrease health (static hazards)
Unity Version: 6.3
Change
Steps
  • 1 Overview
  • 2 Adjust the currentHealth value at game start
  • 3 Challenge: Create a functioning damage zone
  • 4 Refine your damage zone functionality
  • 5 Implement a cooldown after the character takes damage
  • 6 Test your changes and adjust the TimeInvincible value
  • 7(Optional) More things to try (optional step)
  • 8 Check your scripts
  • 9 Next steps
  • You finished!

Unity Version 6.3

Other versions available

Don’t have a compatible version?

Install a new version from the Unity Hub

Continue
Language
Social
Learning
  • Pathways
  • Courses
  • Projects
  • Tutorials
  • Educator Hub
Live
  • Live Sessions
  • Previously recorded
Education Plans
  • Students
  • Educators
  • Institutions
  • Certifications
Resources
  • Unity Asset Store
  • Community
  • Documentation
  • Unity FAQ
  • Learn FAQ
Unity
  • Unity.com
  • Newsletter
  • Blog
  • Events
  • Unity Play
Copyright © 2026 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.