GitHub
Elixir SDK for Unity is available at https://github.com/Elixir-Games-XYZ/elixir-unity-sdk
Existing Git Repositories
This workflow is for games that use git
as their primary version control system.
Getting Started
If you are already using git
as the version control system of choice for your game, you will need to add ElixirUnitySDK
as a git submodule.
Navigate to the
Assets
directory in your gameRun:
git submodule add git@github.com:Elixir-Games-XYZ/elixir-unity-sdk.git ElixirUnitySDK
Verify that a file named
.gitmodule
appeared at the root of your game project folder, and that the Elixir SDK for Unity has been correctly pulled intoAssets/ElixirUnitySDK
This change will now be staged for a commit. Commit it by running
git commit
with a message. For example:git commit -m "Feat: Added Elixir SDK"
Cloning
If you do not do this when you clone your game's repository, the submodule will not be correctly initialized
Working with git submodules introduces one extra step when cloning your repository on a new machine.
Clone your game as usual:
git clone YOUR_GIT_REPO
NEW STEP: Initialize the submodules by running:
git submodule update --init --recursive
Pulling
If you do not pull changes from your repository correctly , the submodule will not be updated
To pull in all changes in your repository including changes in submodules you can run:
Updating Submodule
To fetch the latest changes from the Elixir SDK repository run the following:
You will then be required to commit this change in order to persist the commit of the submodule that your game's repository is pointing to.
Last updated