Skip to content

RMC's best practices for Unity package structure and C# coding standards. It is a recommended starting point for new Unity packages.

License

Notifications You must be signed in to change notification settings

SamuelAsherRivello/unity-package-template

Repository files navigation

npm package License: MIT

RMC Unity Package Template

Fork this repo and update all contents including Readme.md and Package.json to create and release a new UPM-compatible Unity package.




Contents

  1. Install
  2. Configuration
  3. Testing
  4. Credits


Install

You can either install Via NPM or Via Git URL. The result will be the same.

Via NPM

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.your-package-name": "1.8.0"
  }
}

Package should now appear in package manager.

Or Via Git URL

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.your-dependency-here": "https://github.com/SamuelAsherRivello/your-dependency-here.git"
  }
}


Configuration



Testing

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.your-package-name"]
}

Samples

Some packages include optional samples with clear use cases. To import and run the samples:

  1. Open Unity
  2. Complete the package installation (See above)
  3. Open the Package Manager Window
  4. Select this package
  5. Select samples
  6. Import


Credits

Created By

  • Samuel Asher Rivello
  • Over 26 years XP with game development (2025)
  • Over 12 years XP with Unity (2025)

Contact

License

Provided as-is under MIT License | Copyright ™ & © 2006 - 2025 Rivello Multimedia Consulting, LLC

About

RMC's best practices for Unity package structure and C# coding standards. It is a recommended starting point for new Unity packages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages