From fb6acbf3c07ff90490efc60f09662acefa9e150e Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 31 Jul 2019 15:45:32 +0200 Subject: [PATCH] [unity] Updated Spine LWRP UPM package for Unity 2019.2 - added separate package.json files for unity 2019.1 and 2019.2. --- CHANGELOG.md | 7 ++++-- .../package-2019.1.json | 22 +++++++++++++++++++ .../package-2019.2.json | 22 +++++++++++++++++++ .../package.json | 2 +- 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.1.json create mode 100644 spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.2.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b452a2b6..b549d71ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -157,8 +157,11 @@ * Added `Create 2D Hinge Chain` button at `SkeletonUtilityBone` inspector, previously only `Create 3D Hinge Chain` was available. * **Now supporting Lightweight Render Pipeline (LWRP) through an additional UPM package.** * **Installation:** You can download the Unity Package Manager (UPM) package via the [download page](http://esotericsoftware.com/spine-unity-download) or find it in the [spine-runtimes/spine-unity/Modules](https://github.com/EsotericSoftware/spine-runtimes/tree/3.8-beta/spine-unity/Modules) subdirectory on the git repository. You can then either unzip (copy if using git) the package to - a) the `Packages` directory in your project where it will automatically be loaded, or - b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. + * a) the `Packages` directory in your project where it will automatically be loaded, or + * b) to an arbitrary directory outside the Assets directory and then open Package Manager in Unity, select the `+` icon, choose `Add package from disk..` and point it to the package.json file. + + > If you are using git and Unity 2019.2 or newer versions and receive an error that dependencies could not be resolved by the package manager (only higher versions of Unity's `Lightweight RP` package are available, e.g. `6.9.0` and up), please copy the prepared package-UNITYVERSION.json file for your Unity version (e.g. `package-2019.2.json`) over the existing package.json file to change the dependency accordingly. Unfortunately Unity's Package Manager does not provide a way to specify a version range for a dependency like "5.7.2 - 6.9.0" yet, so this manual step is necessary for git users. + The Project panel should now show an entry `Spine Lightweight RP Shaders` under `Packages`. If the directory is not yet listed, you will need to close and re-open Unity to have it display the directory and its contents. * **Usage:** The package provides two shaders specifically built for the lightweight render pipeline: * `Lightweight Render Pipeline/Spine/Skeleton Lit`, as a lightweight variant of the `Spine/Skeleton Lit` shader and diff --git a/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.1.json b/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.1.json new file mode 100644 index 000000000..651262653 --- /dev/null +++ b/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.1.json @@ -0,0 +1,22 @@ +{ + "name": "com.esotericsoftware.spine.lwrp-shaders", + "displayName": "Spine Lightweight RP Shaders", + "description": "This plugin provides lightweight render pipeline (LWRP) shaders for the spine-unity runtime.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime, version 3.8.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)", + "version": "3.8.0", + "unity": "2019.1", + "author": { + "name": "Esoteric Software", + "email": "contact@esotericsoftware.com", + "url": "http://esotericsoftware.com/" + }, + "dependencies": { + "com.unity.render-pipelines.lightweight": "5.7.2" + }, + "keywords": [ + "spine", + "lwrp", + "lightweight", + "render pipeline", + "shaders" + ] +} \ No newline at end of file diff --git a/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.2.json b/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.2.json new file mode 100644 index 000000000..d9b9834e9 --- /dev/null +++ b/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package-2019.2.json @@ -0,0 +1,22 @@ +{ + "name": "com.esotericsoftware.spine.lwrp-shaders", + "displayName": "Spine Lightweight RP Shaders", + "description": "This plugin provides lightweight render pipeline (LWRP) shaders for the spine-unity runtime.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime, version 3.8.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)", + "version": "3.8.0", + "unity": "2019.2", + "author": { + "name": "Esoteric Software", + "email": "contact@esotericsoftware.com", + "url": "http://esotericsoftware.com/" + }, + "dependencies": { + "com.unity.render-pipelines.lightweight": "6.9.0" + }, + "keywords": [ + "spine", + "lwrp", + "lightweight", + "render pipeline", + "shaders" + ] +} \ No newline at end of file diff --git a/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package.json b/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package.json index 529357073..651262653 100644 --- a/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package.json +++ b/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/package.json @@ -3,7 +3,7 @@ "displayName": "Spine Lightweight RP Shaders", "description": "This plugin provides lightweight render pipeline (LWRP) shaders for the spine-unity runtime.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime, version 3.8.\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)", "version": "3.8.0", - "unity": "2018.3", + "unity": "2019.1", "author": { "name": "Esoteric Software", "email": "contact@esotericsoftware.com",