MRGS SDK can be integrated with🔗
- Unity Package Manager (Unity 2018+)
- Manual integration via
.tgzpackage for Unity Package Manager (Unity 2018+) - Manual integration via
.unitypackage
Unity Package Manager🔗
Step 1. Add Sources
To add MRGS to a project via the Unity Package Manager (available from Unity 2018+) simply add a scopedRegistries section to the Packages/manifest.json file by adding the following entry:
{
"dependencies": {
...
},
"scopedRegistries": [
{
"name": "MRGS",
"url": "https://mrgs-nexus.my.games/repository/mrgs-uninty-plugins/",
"scopes": [
"games.my.mrgs"
]
}
]
}
Alternatively, you can click Edit -> Project Settings -> Package Manager -> '+' in scoped registry section, and fill in the fields:
name: "MRGS"
URL: "https://mrgs-nexus.my.games/repository/mrgs-uninty-plugins/",
Scope(s): "games.my.mrgs"
Step 2. Add dependency
Click Window -> Package Manager -> select 'Packages: MyRegistries' from dropdown list, select the required packages from the list, then click "Install"
You can read more about using the Unity Package Manager here.
Manual integration unitypackage🔗
- Download the latest version of the library. Unzip the archive.
- In Unity, click
Assets -> Import Package -> Custom Package, and select the required packages (games.my.mrgs.<module>.unitypackage, e.g.games.my.mrgs.core.unitypackage) from downloaded archive.
Manual integration of tgz🔗
- Download the latest version of the library. Unzip the archive.
- In Unity, click
Window -> Package Manager -> '+' -> Add package from tarball, and select the required packages (games.my.mrgs.<module>-version.tgz, e.g.games.my.mrgs.core-5.0.0.tgz) from the downloaded archive.
Play services resolver
MRGS uses the Play services resolver to resolve external dependencies, both for iOS and Android. In case you do not want to use the Play services resolver on iOS / Android, then simply delete it from the project, or turn off the resolver in its settings, then MRGS will automatically determine that the resolver is not used, it will add to the project all the necessary third-party dependencies stored also locally in the package. This rule applies to all MRGS modules. Also, you can manually use define to set the MRGS behavior with the resolver - MRGS_ENABLE_RESOLVER / MRGS_DISABLE_RESOLVER. Also, for each module, you can separately enable this function using defines like MRGS_ENABLE_RESOLVER_<MODULE_NAME_WITHOUT_MRGS> / MRGS_DISABLE_RESOLVER_<MODULE_NAME_WITHOUT_MRGS> ( for example, MRGS_ENABLE_RESOLVER_FIREBASE).
Created: 2022-07-05