unity的特殊目录和脚本编译顺序

2016-11-23  本文已影响0人  小小青蛙不怕风吹雨打

官方文档·特殊目录
官方文档·脚本编译顺序
Unity3d 项目结构分析

/Assets

/**/Resources

/Assets/**/Editor

/Assets/Editor Default Resources

/Assets/Plugins

/Assets/Standard Assets

/Assets/StreamingAssets

Application.persistentDataPath

/Temp

隐藏目录

unity会忽略下面的目录或文件

/Assets/Gizmos

Unity’s Gizmos allow you to add graphics to the Scene View to help visualise design details that are otherwise invisible.
The Gizmos.DrawIcon function places an icon in the Scene to act as a marker for a special object or position.
You must place the image file used to draw this icon in a folder called Gizmos in order for it to be located by the DrawIcon function.

特殊目录和脚本编译顺序

官方文档·脚本编译顺序

脚本编译顺序影响脚本间的引用,一个文件使用另一个脚本定义的类,则它需要在另一个脚本之后编译。

编译有4层优先级

上一篇 下一篇

猜你喜欢

热点阅读