Skip to content

Instantly share code, notes, and snippets.

@bddckr
Last active August 3, 2017 03:29
Show Gist options
  • Save bddckr/c33a4f89f177fe4ee7191ef1b4121d61 to your computer and use it in GitHub Desktop.
Save bddckr/c33a4f89f177fe4ee7191ef1b4121d61 to your computer and use it in GitHub Desktop.

Using VRTK as a submodule works just fine! Steps:

Set up symlinks for git on Windows:

To allow symlinks you need to use Windows Vista or later, have admin rights or a specific privilege and use NTFS: https://github.com/git-for-windows/git/wiki/Symbolic-Links Install the latest git via https://git-scm.com/downloads and make sure to use the installer. Make sure to at least use "Use Git from the Windows Command Prompt" and at the last step make sure to tick the checkbox "Enable symbolic links".


  1. Add VRTK as a submodule to MyProject\Submodules\VRTK or wherever you like in your project, but not in the Assets folder Unity uses. The following steps will use the example path.
  2. Open a command prompt as administrator.
  3. cd into MyProject\.
  4. Run git config core.symlinks true. This will tell git to allow symlinks for this repo only.
  5. cd to where you want your VRTK copy to be linked to, e.g. MyProject\Assets\Libraries\.
  6. Run mklink /d "VRTK" "..\..\Submodules\VRTK\Assets\VRTK"

When checking out make sure you run the command prompt as administrator, otherwise I can't get it to use the symlink properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment