Test Package
A sample UPM package (Unity Package Manager)
uk.co.nonatomic.test-package Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/test-package.git 
README Markdown
Copy this to your project's README.md
## Installation
Add **Test Package** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/test-package.git
```
[](https://www.pkglnk.dev/pkg/test-package)Dependencies (1)
README
#Custom Unity Package
UPM Unity Package Manager is Unitys equivalent of NPM. This is the process required to create custom Unity packages distributed via UMP. UPM packages must adhere to UPM standards and convensions for them to function properly.
see Unitys docs
###Creating a new embedded package Follow these instructions if you want to create a custom package inside your project folder.
- Open the Unity Hub, and create an empty project on your computer. You can also use an existing project on your computer, and embed the package under your project or install the package from a local folder. However, starting with a new project makes the package contents less prone to errors.
- Using your computerβs file manager (for example the Windows File Explorer or the macOS Finder), navigate to your project folder and locate the Packages subfolder.
- Create a new subfolder for your package inside the Packages folder using a name that matches the package name. For example, if your package is called com.example.mypackage, the subfolder should also be called com.example.mypackage. Note: This is particularly important if your package contains assets, because the AssetDatabase looks for an asset path that matches Packages/
/Assets, regardless of what the actual folder is called. - Open your preferred text editor and create a JSON file called package.json.
- Save it under the new package root folder you created.
- Fill out all required and mandatory fields in the package manifest (package.json) file.
- Layout your package structure to adhere to the package layout convension
###Package Manifest Example
{
"name": "com.unity.example",
"version": "1.2.3",
"displayName": "Package Example",
"description": "This is an example package",
"unity": "2019.1",
"unityRelease": "0b5",
"dependencies": {
"com.unity.some-package": "1.0.0",
"com.unity.other-package": "2.0.0"
},
"keywords": [
"keyword1",
"keyword2",
"keyword3"
],
"author": {
"name": "Unity",
"email": "unity@example.com",
"url": "https://www.unity3d.com"
}
}
###Package Layout Example
<root>
βββ package.json
βββ README.md
βββ CHANGELOG.md
βββ LICENSE.md
βββ Editor
β βββ Unity.[YourPackageName].Editor.asmdef
β βββ EditorExample.cs
βββ Runtime
β βββ Unity.[YourPackageName].asmdef
β βββ RuntimeExample.cs
βββ Tests
β βββ Editor
β β βββ Unity.[YourPackageName].Editor.Tests.asmdef
β β βββ EditorExampleTest.cs
β βββ Runtime
β βββ Unity.[YourPackageName].Tests.asmdef
β βββ RuntimeExampleTest.cs
βββ Documentation~
βββ [YourPackageName].md
``
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In