Pathways
LiveEducator Hub
  • Sidebar node image

    tutorial

    Introduction to the public keyword and inheritance
Unity Version: 2022.3
Change
Steps
  • 1 Understand the difference between public and private
  • 2 Review a private variable example
  • 3 Make your LootAngle variable public
  • 4 Access a public variable in Unity Editor
  • 5 Create a new spawning object
  • 6 Using exposed variables to adjust gameplay
  • 7 Review your progress
  • 8 Look up “MonoBehaviour”
  • 9 Introduction to derivation and inheritance
  • 10 Review an inheritance example
  • 11 What does the MonoBehaviour class contain?
  • 12 Tutorial summary
  • You finished!

Unity Version 2022.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 © 2025 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.