Unity3D
来源:互联网 发布:oracle删除重复数据 编辑:程序博客网 时间:2024/06/06 04:12
https://forum.unity3d.com/threads/is-there-a-way-to-import-a-package-to-a-specific-folder.173393/
Question :
I just organized my assets folder. But every time I import something, Unity just dumps everything into the root directory. How can I specify or choose the save folder when I am importing a new asset?
Best Answer:
Edit: Since it was difficult to find an answer to this, and nobody has a good answer, I did a bunch of studying and I will answer this myself in case someone else needs this information.
This is a problem that affects every Unity developer. Here is my suggested solution (based on an idea from another veteran Unity developer). Create this Assets folder structure:
TOP (ROOT) LEVEL:
Gizmos
Main
Sandbox
Scenes
Standard Assets
StreamingAssets
SECOND LEVEL, IN “Main” FOLDER:
Animations
Audio
GUI
Materials
Models
Plugins
Prefabs
Resources
Scripts
Shaders
Terrain
Textures
Utilities
Whenever you import a new asset, it will just dump the files into the assets folder without any consideration to sanity. Using the above folder approach it is easier to find the folders it creates. For example, I installed “NoesisGUI” a few days ago and it created four folders and put files all over. This would make it difficult to uninstall, and I don’t think these developers think much about the management of their asset in a folder with many other assets.
Using the above folder structure, you can stay organized and keep your root Assets folder extremely clean, so that it is easy to see what an asset has dumped on you.
Certain folders must stay in the Assets root directory. “Gizmos” is one of those, which is used by Unity. Also, “StreamedAssets” and “Standard Assets” should stay in the root folder.
Most asset packages can be drug into a subfolder and into their own subfolder. But some asset packages use an absolute path and the creators did not consider that they might be moved. In this case, sometimes the C# script can be edited to the new path if the scripts are available. Most good assets will work fine even if moved to a subfolder, because they use relative paths internally.
Then once you have it like you want, you can export a packageof the assets to use in all other projects.
Unity does not put empty folders in an assets package. I created the template of what I want for all future projects, which includes exactly the editor tools I need and folder structure I want. I created the Assets package and it did not include the empty folders, so I manually copied the empty folders into a backup place with the assets package. Now I install this whenever I start a new package. Thus, every new project has exactly the folder structure and editor tools already installed the way I want/need them.
- Unity3D
- Unity3D
- Unity3D
- Unity3D
- unity3d
- Unity3D
- Unity3D
- Unity3D
- UNITY3D
- Unity3D
- unity3d
- unity3D
- Unity3D
- Unity3d
- Unity3D
- unity3D
- unity3D
- Unity3D
- python编程常见错误笔记
- linux的squid代理服务
- href和src的区、link和@import的区别
- Eclipse报错:Subversion Native Library Not Available
- 爬虫实战7-应对反爬虫的策略
- Unity3D
- android mvc
- PHP 正则preg_match 与 preg_match_all 函数以及匹配中文
- springboot+mybatis 多数据源——Mybatis深入浅出(三)
- TensorFlow1.2的一个bug(Couldn't open CUDA library libcupti.so.8.0.)
- 守护(Daemon)线程
- Mybatis插件
- InitCommonControlsex
- 20个非常有用的java程序片段