Best practices and optimizations for the "Unity game development Five" game directory structure

Source: Internet
Author: User

Best practice pre-conditions for game directory structure

1. Multi-person collaborative development, GIT management

2. The game is not big, all scenes merged into a scene, eg. Rolescene, Mapscene, Storescene

3.Master one person to manage the scene to prevent multiple people from modifying the resulting home view (binary) conflict

Goal

1. Multi-person parallel development, non-interference impact

2. The main scene in perfect case, only the first time the structure of the allocation of the directory is modified by the master once, and will not need any changes

Development process

Directory structure:

1.Hierarchy directory structure, three scenes rolescene, Mapscene, Storescene respectively by three empty nodes management, coordinates clear 0, the directory is the precast body of each interface

2. Each non-dynamically loaded prefab is placed into the Dev-perfab directory, which needs to be dynamically loaded into the Resources/perfabs directory, and all Perfab preforms in the Resources/perfabs directory are packaged into the game (including unused) when the game is packaged. , and the remainder of the catalog is packaged only if it is used in the scene.

3. Multi-person collaborative development testing
Because eventually we merged all the scenes into the Gamescene, but the development process did not do so, respectively built Rolescene, Mapscene, Storescene, the development process of each person a scene to develop Test precast.

4. All scenes are in one scene, the UI superimposed together is chaotic, in the development, you can hide the root node, easy to develop.

Attention to Development details 1. preform Catalogue Clear 0

Unified coordinate Reset,layer UI selection

2. Prefabricated root node structure

Contains UIPanel and Uianchor (for multi-resolution and screen-aligned), the Ui Camera property is selected none

Summarize

There is no perfect development solution, only the most suitable development solution, the disadvantage of current development solution:
1. Because all the scenes are merged together, there will eventually be only one scene, causing the scene to load slowly
2. All UI in one scene, the development of the various scene UI overlay, can only hide the other UI interface and development of the specified interface, the game is huge, the UI is very much the case does not fit.

If there is any mistake, I hope you will criticize me, thank you.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Best practices and optimizations for the "Unity game development Five" game directory structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.