“This is the 16th day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”
👉 About the author
As we all know, life is a long process of constantly overcoming difficulties and reflecting on progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share my thoughts, experiences and stories to find resonance!!
Focus on Android/Unity and various game development tips, as well as various resource sharing (websites, tools, materials, source code, games, etc.)
Welcome to pay attention to the public account [Mr. Empty name] for more resources and communication!
👉 premise
Why specification/specification purpose
Unity development usually requires parallel development with 3D, art and design, and frequent communication, and large projects may be multi-person development, so a good project specification can improve development efficiency. Many advantages:
- 1. Convenient code communication and fragmentation maintenance, so that everyone can read the code clear, maintainable;
- 2. The management efficiency of the early-stage development team is high, and the division of labor is clear, which effectively avoids confusion in the back and prevents malicious overtime work;
- 3. Fast update/maintenance, clear logic and clear project;
- 4. Although the standard code may not bring high performance, but must be elegant, pleasing to the eye, not boring to improve the mood of pleasure;
Good practices are important, and no one wants to work in a “messy” environment
👉 Practice
😜 File directory specifications
Level 1 Directory:
[01_Scenes] : Store all scenes, convenient to quickly find the corresponding scene, if the scene has a sequence of names can be put on the number
[02_UI] : Store 2D resources, such as picture sprites, etc., if too many can be divided into two folders, the naming rules and the use of the corresponding place
[03_Model] : Store 3D resources, model materials and all related content
[04_NetAndData] : Store network communication and local database and other related content, such as: server access, local storage, etc
[05_Utils] : Store the package classes you usually use, such as: Screen class, Time class, Math class, file manipulation class, Time class, string class, etc
[06_Scripts] : Store scripts, preferring to store scripts that are used in two or more places, such as those that are used alone and associated with controls/models, together
[07_Audio] : Stores sound files
[08_Others] : Store other files, temporarily not clear under which category of files, can be classified later
[09_Test] : Test folder, normal test function, the next test script, etc., are put here, can be directly deleted before the product release
[Plugins] : System default files are automatically recognized as Plugins, which store code tools that extend the Unity editor, and are not packaged into them during compilation
[Prefab] : System default files will automatically identify, store frequently used objects or resources, fully reuse
[Resources] : The system default file will be automatically identified, the default resource path, when published will be automatically packaged into the code can be directly accessed
There are more suitable ones that can be added
Secondary directory:
You can add corresponding folders according to your project needs, such as [03_Model] folder for 3D resources and [02_UI] folder for 2D resources
3D you can sort by model, you can sort by resource
Animators: Resource files related to animation controllers.
Materials: Resource files related to Materials.
Shaders: Shader related resource files.
[Scripts] : resource files related to Scripts.
Textures: Texture related resource file.
or
[ModelOne] : Save all things of the whole model, material/model/texture, etc
[ModelTwo] : Same as above, save all of another model
As above, the resources are clear, the conditioning is clear, and the project level is known at a glance. As for the deeper three or four categories, the project needs to be set flexibly.
👉 other
📢 author: Kom and Kom in Kom
📢 reprint instructions – be sure to specify the source: Zhim Granular’s personal home page – column – Nuggets (juejin. Cn)
📢 welcome to like 👍 collect 🌟 message 📝