Skip to content

Instantly share code, notes, and snippets.

@pushmatrix
Created February 21, 2020 01:35
Show Gist options
  • Save pushmatrix/968232b975acc836833d1b0a29021770 to your computer and use it in GitHub Desktop.
Save pushmatrix/968232b975acc836833d1b0a29021770 to your computer and use it in GitHub Desktop.
Embedding Unity Packages

Embedding packages

Let's say you want to edit a package that you download with the package manager. You can actually make it so you have a local copy of the package that overrides what's in your package cache.

  1. Put this in your Unity project: https://gist.github.com/liortal53/111ee2a659b0d59c80faab0f5d457531
  2. Right click on the package you want, and press Embed Package
  3. You now have a copy of the package in your Packages dir
  4. If you delete that package folder, Unity will automatically switch back to using the package manager version. All references to scripts will stay intact.
@CJFEdu
Copy link

CJFEdu commented Nov 18, 2022

Number 2 wasn't clear to me at first. I tried right clicking on the folder in Packages list on the left and "Embed Package" was greyed out. I had to click on Packages on the left and that brought up all the folders in Packages on the right and then I was able to right click on the folder on the right and Embed Package was available.

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