Miscellaneous
Author: Son Nguyen Hoang
Word: 478
Language: English
Created On: 13 Mar 2025
A flow of development when you are doing Unity project and build custom framework at the same time
Motivation I encountered a funny problem when coding a Unity Game. To increase the reusability while making game, I also develop a Framework. This framework would be an Unity Package. The thing is that the GAME itself also relies on the framework, which basically mean that I cannot modify and update the framework directly. So, what is the work arround? Problem Statement Foundation The game is refered as FAW (Codename) The framework is SysiphusFramework. I am NOT the only one working at the game. Because of the, SysiphusFramework exists as a UnityPackage that is added to Unity Project through git url By doing so, the framework itself is part of the game (inside FAW Folder). However, it now stays in Library (not Assets folder), thus we cannot modify it So, as a developer who are making the framework, how to edit it? Solution Ideas The logic is to create a DEFINITION (in Unity Editor). In the Editor, we now refer the DEFINITION as USE_GIT_FRAMEWORK. If USE_GIT_FRAMEWORK existed, then the project would remove the package from the library. Developers of the package now would have to clone the actual git repository of the framework into the project (into Assets folder) to make update. ...