To create a plugin for MirrorNG, follow these steps:
- Click on "Use this template" button at the top right to create your repo
- Rename Assets/MyPlugin with a name appropriate for your plugin
- Rename MyPlugin.asmdef
- edit MyPlugin.asmdef and change the name of the assembly
- adjust package.json to describe your project and change the package name
- update .releaserc.yml with the correct path
- update README.txt to describe your project
- While not strictly required, I suggest creating a symbolic link from Assets/MyPlugin/Samples~ to Assets/Samples. This will allow you to open and edit your examples in unity.
- Add your samples to package.json, so upm can install them.
- If you create the plugin in MirrorNG repo, you will automatically use the org license for unity otherwise activate a manual license and add it as a secret in your repo called UNITY_LICENSE. see https://github.com/MirrorNG/unity-runner for detailed instructions
- Create a sonar qube project for your repo in sonarcloud or ask Paul if you would like it created in the MirrorNG org
- add SONAR_PROJECT_KEY secret. It must be set to the project id in sonarcloud. For example for MirrorNG it is MirrorNG_MirrorNG
- Add SONAR_PROJECT_NAME secret. Set it to a human readable name for your project
- add SONAR_TOKEN secret. You can get the token by going through the configuration wizard in sonar qube
- Replace this readme with README.md.sample and edit as appropriate
Once your plugin is working the way you like, you can add it to openupm by going to https://openupm.com/packages/add/