Unity 5.6.0f3
1,如何查看API
Help ——> Unity Manual
——> Scripting Reference
模块化下载安装
2,什么是事件函数
MonoBehaviour 继承自 Behaviour 继承自Component 继承自Object(Unity里面所有物体都是可以称为这个Object.区别于System.Object,是Unity.Object属于Unity.Engine命名空间.)
FPS 帧率 每一秒执行的次数.
Script Lifecycle Flowchart :
Reset (Editor ,编译运行的时候才会执行一次,发布之前,在编辑器模式下,1脚本添加到物体上时,2reset重置附加在物体上组件的时候)
注意大小写!!!
Execution Order of Event Functions:
事件功能执行的顺序:
Reset is called in the Editor when the scripts is attached or reset. [ Reset ]— Editor
[ Awake ]
[ OnEnable ]
Start is only ever called once for a given script [ Start ] Initialization 初始化
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/281412.html