特殊的文件夹

Assets : 存放项目的所有资源,直接显示在Project中。

Editor : 存放扩展Unity功能的脚本,在这个文件夹里继承MonoBehaviour的脚本不能指定给GameObject,也就是不参与游戏运行时。一个项目可以有多个Editor文件,但是影响执行的顺序。

Editor Default Resources : 这个文件夹必须直接放在Assets目录下,存放Unity扩展编辑器的资源文件,通过EditorGUIUtility.Load加载

Gizmos : 存放一些用于标志Scene中的GameObject和position的小图片icon,用Gizmos.DrawIcon加载。

Plugins : 用于扩展Unity的特性,一般存放c/c++  dll文件等外部脚本。跟Editor一样,可以多个,但有执行顺序。

Resources : 放置需要脚本来加载的资源文件,可以有多个Resources文件夹,无论放在哪里。通过Resources.Load方法加载。

Standard Assets : 导入标准资源包时存放的文件夹。

StreamingAssets : 存放不需要一些需要保持原有格式的文件(不需要unity的处理)

Hidden Assets :

During the import process Unity completely ignores the following files and folders in the Assets folder (or a sub-folder within it):

Hidden folders.

Files and folders which start with ‘.’.

Files and folders which end with ‘~’.

Files and folders named ‘cvs’.

Files which have ‘tmp’ extension.

This is used to prevent importing special and temporary files created by operating system or other applications.


首页 我的博客
粤ICP备17103704号