Pathways
Educator Hub
  • Sidebar node image
    tutorial
    public 关键字和继承简介
Unity Version: 2020.3
Change
Steps
  • 1 了解 public 和 private 关键字之间的区别
  • 2 查看私有变量示例
  • 3 使 LootAngle 变量成为公共变量
  • 4 在 Unity 编辑器中访问公共变量
  • 5 创建新的生成对象
  • 6 使用公开变量来调整游戏玩法
  • 7 查看学习进度
  • 8 查找“MonoBehaviour”
  • 9 派生和继承简介
  • 10 查看继承示例
  • 11 MonoBehaviour 类包含哪些内容?
  • 12 教程总结
  • You finished!

Unity Version 2020.3

Other versions available

Continue

Don’t have a compatible version?

Install a new version from the Unity Hub

Language
Social
Learning
  • Pathways
  • Courses
  • Projects
  • Tutorials
  • Educator Hub
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.