Manage your project before integration

Manage your project before integration

We have some predefined project structures to optimize your game source code on the platform. This helps us reduce the load time of the game and improve your game performance.

To achieve this, we have a set of instructions that are MANDATORY to integrate your game successfully. Steps to be followed:

  1. Your Unity Package structure should be like this:

    1. Make one folder, with the name “Games”.

    2. Create another folder inside the “Games” folder.

      1. The Folder name should be the SAME as your Game name

      2. If your game name includes a space, please replace it with a ‘-’ as shown below

      3. Eg: Folder name should be your Game Name like ”Bubble-Shooter”

      4. Put all your project assets and scripts in your game folder.

  2. Add namespace to all of your scripts

  3. Add game name prefix to all of your scripts, class, enum, struct etc.

    For example:

    • If your game name is Carrom and there is a class or script GameManager.cs then add a prefix to it. Like Carrom_GameManager.

    • If there is an enum called GameMode, then it must be like Carrom_GameMode.

  4. If you have any specific plugins in your game that are not a part of the WinZO SDK, include those in the Unity Package. Note: Make sure those plugins contain only scripts and not any examples and scenes.

  5. Don’t use Resources.Load() instead take the reference of that object in a script.

  6. DON’T use DontDestroyOnLoad() anywhere in your scripts.

  7. If you are using static variables in your game, then please reset it at game start or game over. However, please try to avoid using static variables.

  8. DON’T use Camera.main to get a camera, take the reference of the Main Camera to your game via the code.

Last updated