Skip to content

constance012/CST_Unity_Shared_Resources

Repository files navigation

CST_UNITY_SHARED_RESOURCES

OVERVIEW

This repo is a submodule to be injected into other repositories, not meant to be used as a standalone Unity project.

This repo includes all my shared resources, scripts, plugins, packages, and libraries that I use across my Unity 6 projects.

ADD THIS REPO AS A SUBMODULE

1. Using Fork

  • Open your Unity project repository.
  • On the left panel, right click Submodules - Add New Submodule.

add_new_submodule

  • Enter the URL of this repo. Then specify the name of the folder relative to your current git repo, but it is advised that you put this folder outside your Unity project's folder to avoid any unwated conflicts.

enter_submodule_url

  • Hit Add Submodule to add this repo into your current repo as a submodule.

2. Using Command Line

  • Cd into your git repo and use this command to add a new submodule.

git submodule add [submodule-url] [relative-target-folder]

  • [submodule-url]: the url of the submodule
  • [relative-target-folder]: the target folder relative to your current repo.

CREATE LINK TO THE MAIN RESOURCES FOLDER

After adding this repo as a submodule, you need to link the main resources folder to your Unity project's Assets folder.

1. For macOS

  • Cd into your Unity project's Assets folder.
  • Run this command to delete any existing, corrupted folder with the same name as the main resources folder.

rm -rf "0_CstSharedResources"

  • After that, create a symbolic link points to the main resource folder inside the submodule you just added.

ln -s "[Your-Git-Folder-Path]\CST_Unity_Shared_Resources\0_CstSharedResources" "0_CstSharedResources"

  • And that's it, you've successfully injected the main resources folder into your Unity project. From now on, if the submodule gets updated in the future, those changes will also be reflected in your Unity project as well, if you fetch the latest of course.

2. For Windows

  • Navigate into the submodule folder: [Your-Git-Folder-Path]\CST_Unity_Shared_Resources\
  • Locate and run the windows_link.bash file as Administrator. Then enter your Unity project's folder name into the CMD window, make sure to wrap it in double quotes.

windows_link_enter_project_name

  • Press Enter and see if the symbolic link is successfully created, if not, double check your project's name.

windows_link_process_success

PACKAGES CREDITS

© 2022-2025 CST Games, all rights reserved.

About

Shared resources, scripts, plugins, and libraries between Constance's Unity projects.

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages