Unity核心对象模型

总结的Unity引擎部分的核心对象模型类图,供大家学习时参考,根基类为Object,下一层包括核心基类GameObject,及其他作为资源的Mesh,Material,Shader,Texture,Sprite等,另一个核心基类为Component,GameObject和Component之间是组合关系,1对多,这是Unity引擎的核心设计思路,Component的派生类包括核心组件Transform,模型显示的MeshFilter,用于渲染的Renderer,粒子系统ParticleSystem,物理引擎的Rigidbody,Collider,Joint等,继承 Component的另一个核心基类为Behaviour,其派生类为Light,Camera,AudioListener,AudioSource,Animation,Animator等,以及重要基类MonoBehaviour,自定义脚本继承该类。

原文地址:https://www.cnblogs.com/clockdotnet/p/9217226.html