Neater Unity 2018 projects with git submodules and sparse checkout
✓ Published0🌍 Public
Aandybak
Last edited Jun 9, 2018
Created on Jun 7, 2018
This example shows how to manage Unity 2018 projects more cleanly by combining git submodules with sparse checkout to include only necessary asset folders from external repositories. It demonstrates a shell script (`addpackage.sh`) that clones a repository, registers it as a submodule, enables sparse checkout, and specifies which `Assets/` directories to pull, while a `package.json` file defines the package metadata for Unity’s package manager. The code uses git commands like `git clone`, `git submodule`, and `git config core.sparseCheckout` to achieve selective inclusion, without any visualization libraries or rendering APIs.
AI-generated description