|
| 1 | +[](https://github.com/GieziJo/ScriptableObjectVariant/releases/latest) |
| 2 | +[](https://openupm.com/packages/ch.giezi.tools.scriptableobjectvariant/) |
| 3 | +[](https://github.com/GieziJo/ScriptableObjectVariant/blob/master/LICENSE.txt) |
| 4 | + |
1 | 5 | # Scriptable Object Variant for Unity (Scriptable Object Data Overrider) |
2 | 6 | ## Description |
3 | 7 | Adds a field to any scriptable object tagged with the `[SOVariant]` attribute that lets you select an original SO (parent) and override selected fields in the child object. |
@@ -85,16 +89,24 @@ The visual interface is implemented in [Odin](odininspector.com/)'s [`OdinProper |
85 | 89 | The data with the parent and the overriden fields is kept serialized inside the asset's metadata, set in unity with `AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(targetObject)).userData`. |
86 | 90 |
|
87 | 91 | ## Installation |
88 | | -> Requires [Odin](odininspector.com/) to be installed |
| 92 | +> Requires [Odin](odininspector.com/) to be installed before adding the package |
89 | 93 | ### Using Unity's package manager |
90 | 94 | Add the line |
91 | 95 | ``` |
92 | 96 | "ch.giezi.tools.scriptableobjectvariant": "https://github.com/GieziJo/ScriptableObjectVariant.git#master" |
93 | 97 | ``` |
94 | 98 | to the file `Packages/manifest.json` under `dependencies`, or in the `Package Manager` add the link [`https://github.com/GieziJo/ScriptableObjectVariant.git#master`](https://github.com/GieziJo/ScriptableObjectVariant.git#master) under `+ -> "Add package from git URL...`. |
95 | 99 |
|
| 100 | +### Using OpenUPM |
| 101 | +The package is available on [OpenUPM](https://openupm.com/packages/ch.giezi.tools.scriptableobjectvariant/). |
| 102 | +OpenUPM packages can be installed in different ways: |
| 103 | +- via [OpenUPM CLI](https://github.com/openupm/openupm-cli): `openupm add ch.giezi.tools.scriptableobjectvariant` |
| 104 | +- by downloading the [`.unitypackage`](https://package-installer.glitch.me/v1/installer/OpenUPM/ch.giezi.tools.scriptableobjectvariant?registry=https%3A%2F%2Fpackage.openupm.com) and adding it to your project with `Assets > Import Package > Custom Package...`. |
| 105 | + |
| 106 | +the package will be added as a scoped registry, which you can inspect under `Project Settings > Package Manager > OpenUPM`. |
| 107 | + |
96 | 108 | ### Alternative |
97 | | -Copy the content of `Editor` to your Editor folder inside Unity. |
| 109 | +Download and copy all files inside your project. |
98 | 110 |
|
99 | 111 | ## Known issues and tweaks to be made |
100 | 112 | <details> |
|
0 commit comments