unity3D中在A文件里的awake和B文件里的start函数的执行顺序是怎么确定的

2025-01-03 04:05:16
推荐回答(1个)
回答1:

unity先执行所有脚本的awake函数,然后是start函数
Awake is always called before any Start functions. This allows you to order initialization of scripts.
见http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.Awake.html