8000 Unity-Extensions/Unity-Bezier-Editor at master · IvanMurzak/Unity-Extensions · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

README.md

Unity-Package-Template

UPM (Unity Package Manager) ready GitHub repository for Unity New Unity packages system is very easy to use and make your project much more cleaner. The repository helps you to create your own Unity package with dependecies.

How to use

  • "Use this template" green button at top right corner of GitHub page

  • Clone your new repository

  • Add all your stuff to Assets/_PackageRoot directory

  • Update Assets/_PackageRoot/package.json to yours

  • (on Windows) execute gitSubTreePushToUPM.bat

  • (on Mac) execute gitSubTreePushToUPM.makefile

  • (optional) Create release from UPM branch on GitHub web page for support different versions

alt text

How to import your package to Unity project

You may use one of the variants

Variant 1

  • Select "Add package from git URL"
  • Paste URL to your GitHub repository with simple modification:
  • https://github.com/USER/REPO.git#upm Dont forget to replace USER and REPO to yours

alt text

Or you may use special version if you create one

https://github.com/USER/REPO.git#v1.0.0 Dont forget to replace USER and REPO to yours

Variant 2

Modify manifest.json file. Change "your.own.package" to the name of your package. Dont forget to replace USER and REPO to yours.

{
    "dependencies": {
        "your.own.package": "https://github.com/USER/REPO.git#upm"
    }
}

Or you may use special version if you create one

Dont forget to replace USER and REPO to yours.

{
    "dependencies": {
        "your.own.package": "https://github.com/USER/REPO.git#v1.0.0"
    }
}
0