RMC's best practices for Unity package structure and C# coding standards. It is a recommended starting point for new Unity packages.
MIT License
RMC's best practices for Unity package structure and C# coding standards. It is a recommended starting point for new Unity packages.
Enjoy!
You can either install Via NPM or Via Git URL. The result will be the same.
You can either use the Unity Package Manager Window (UPM) or directly edit the manifest file. The result will be the same.
UPM
To use the Package Manager Window, first add a Scoped Registry, then click on the interface menu ( Status Bar → (+) Icon → Add Package By Name ...
).
Manifest File
Or to edit the Packages/manifest.json
directly with your favorite text editor, add a scoped registry then the following line(s) to dependencies block:
{
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.rmc"
]
}
],
"dependencies": {
"com.rmc.unity-package-template": "1.0.0"
}
}
Package should now appear in package manager.
You can either use the Unity Package Manager (UPM) Window or directly edit the manifest file. The result will be the same.
UPM
To use the Package Manager Window click on the interface menu ( Status Bar → (+) Icon → Add Package From Git Url ...
).
Manifest File
Or to edit the Packages/manifest.json
directly with your favorite text editor, add following line(s) to the dependencies block:
{
"dependencies": {
"com.rmc.unity-package-template": "https://github.com/SamuelAsherRivello/unity-package-template.git"
}
}
The package can optionally be set as testable. In practice this means that tests in the package will be visible in the Unity Test Runner.
Open Packages/manifest.json
with your favorite text editor. Add following line after the dependencies block:
{
"dependencies": {
},
"testables": [ "com.rmc.unity-package-template" ]
}
Some packages include optional samples with clear use cases. To import and run the samples:
Unity Target
- Standalone MAC/PC
Unity Version
- Any Unity Editor 2021.x or higherUnity Rendering
- Any Unity Render Pipeline
Unity Aspect Ratio
- Any Unity Game View
License
Provided as-is under MIT License | Copyright ™ & © 2006 - 2024 Rivello Multimedia Consulting, LLC