Merge branch '4.1-beta' into 4.2-beta

This commit is contained in:
Mario Zechner 2022-05-30 11:51:05 +02:00
commit c51b9220c7
5 changed files with 23 additions and 23 deletions

View File

@ -66,7 +66,7 @@
### Unity ### Unity
* **Officially supported Unity versions are 2017.1-2021.1**. * **Officially supported Unity versions are 2017.1-2022.1**.
* **Additions** * **Additions**
* `SpineAtlasAsset.CreateRuntimeInstance` methods now provide an optional `newCustomTextureLoader` parameter (defaults to `null`) which can be set to e.g. `(a) => new YourCustomTextureLoader(a)` to use your own `TextureLoader` subclass instead of `MaterialsTextureLoader`. * `SpineAtlasAsset.CreateRuntimeInstance` methods now provide an optional `newCustomTextureLoader` parameter (defaults to `null`) which can be set to e.g. `(a) => new YourCustomTextureLoader(a)` to use your own `TextureLoader` subclass instead of `MaterialsTextureLoader`.
@ -219,7 +219,7 @@
### Unity ### Unity
* **Officially supported Unity versions are 2017.1-2021.1**. * **Officially supported Unity versions are 2017.1-2022.1**.
* **Breaking changes** * **Breaking changes**
* Removed all `Spine.Unity.AttachmentTools.SkinUtilities` Skin extension methods. These have become obsoleted and error-prone since the introduction of the new Skin API in 3.8. To fix any compile errors, replace any usage of `Skin` extension methods with their counterparts, e.g. replace occurrances of `skin.AddAttachments()` with `skin.AddSkin()`. Please see the example scene `Mix and Match Skins` on how to use the new Skin API to combine skins, or the updated old example scenes `Mix and Match` and `Mix and Match Equip` on how you can update an existing project using the old workflow. If you are using `skeletonAnimation.Skeleton.UnshareSkin()` in your code, you can replace it with `Skin customSkin = new Skin("custom skin"); customSkin.AddSkin(skeletonAnimation.Skeleton.Skin);`. * Removed all `Spine.Unity.AttachmentTools.SkinUtilities` Skin extension methods. These have become obsoleted and error-prone since the introduction of the new Skin API in 3.8. To fix any compile errors, replace any usage of `Skin` extension methods with their counterparts, e.g. replace occurrances of `skin.AddAttachments()` with `skin.AddSkin()`. Please see the example scene `Mix and Match Skins` on how to use the new Skin API to combine skins, or the updated old example scenes `Mix and Match` and `Mix and Match Equip` on how you can update an existing project using the old workflow. If you are using `skeletonAnimation.Skeleton.UnshareSkin()` in your code, you can replace it with `Skin customSkin = new Skin("custom skin"); customSkin.AddSkin(skeletonAnimation.Skeleton.Skin);`.
* `Skin.GetAttachments()` has been replaced by `Skin.Attachments`, returning an `ICollection<SkinEntry>`. This makes access more consistent and intuitive. To fix any compile errors, replace any occurrances of `Skin.GetAttachments()` by `Skin.Attachments`. * `Skin.GetAttachments()` has been replaced by `Skin.Attachments`, returning an `ICollection<SkinEntry>`. This makes access more consistent and intuitive. To fix any compile errors, replace any occurrances of `Skin.GetAttachments()` by `Skin.Attachments`.

View File

@ -53,9 +53,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/three": { "node_modules/@types/three": {
"version": "0.133.1", "version": "0.140.0",
"resolved": "https://registry.npmjs.org/@types/three/-/three-0.133.1.tgz", "resolved": "https://registry.npmjs.org/@types/three/-/three-0.140.0.tgz",
"integrity": "sha512-XqBrP/+kbs+o0CYRhCVVE95v7FaL2bO5Z7+3VQJE0nEyjo+9LoLfeNgZITOnndKHxM+7ltEciAIR7uE0SZlsOg==" "integrity": "sha512-YPJLSIY6uKUOp1k6BZYDq5GtEIdhfeK04UCbc9IPAVbdn/RNjkfrbnyd7smrsNkJhc0IFASLpd3AAYgwqgXKVQ=="
}, },
"node_modules/accepts": { "node_modules/accepts": {
"version": "1.3.8", "version": "1.3.8",
@ -7569,9 +7569,9 @@
} }
}, },
"node_modules/three": { "node_modules/three": {
"version": "0.133.1", "version": "0.140.2",
"resolved": "https://registry.npmjs.org/three/-/three-0.133.1.tgz", "resolved": "https://registry.npmjs.org/three/-/three-0.140.2.tgz",
"integrity": "sha512-WydohO8ll949B0FTD6MGz59Yv2Lwj8hvObg/0Heh2r42S6+tQC1WByfCNRdmG4D7+odfGod+n8JPV1I2xrboWw==" "integrity": "sha512-DdT/AHm/TbZXEhQKQpGt5/iSgBrmXpjU26FNtj1KhllVPTKj1eG4X/ShyD5W2fngE+I1s1wa4ttC4C3oCJt7Ag=="
}, },
"node_modules/through": { "node_modules/through": {
"version": "2.3.8", "version": "2.3.8",
@ -7992,8 +7992,8 @@
"license": "LicenseRef-LICENSE", "license": "LicenseRef-LICENSE",
"dependencies": { "dependencies": {
"@esotericsoftware/spine-core": "^4.2.2", "@esotericsoftware/spine-core": "^4.2.2",
"@types/three": "^0.133.1", "@types/three": "^0.140.0",
"three": "^0.133.1" "three": "^0.140.0"
} }
}, },
"spine-webgl": { "spine-webgl": {
@ -8025,8 +8025,8 @@
"version": "file:spine-threejs", "version": "file:spine-threejs",
"requires": { "requires": {
"@esotericsoftware/spine-core": "^4.2.2", "@esotericsoftware/spine-core": "^4.2.2",
"@types/three": "^0.133.1", "@types/three": "^0.140.0",
"three": "^0.133.1" "three": "^0.140.0"
} }
}, },
"@esotericsoftware/spine-webgl": { "@esotericsoftware/spine-webgl": {
@ -8042,9 +8042,9 @@
"dev": true "dev": true
}, },
"@types/three": { "@types/three": {
"version": "0.133.1", "version": "0.140.0",
"resolved": "https://registry.npmjs.org/@types/three/-/three-0.133.1.tgz", "resolved": "https://registry.npmjs.org/@types/three/-/three-0.140.0.tgz",
"integrity": "sha512-XqBrP/+kbs+o0CYRhCVVE95v7FaL2bO5Z7+3VQJE0nEyjo+9LoLfeNgZITOnndKHxM+7ltEciAIR7uE0SZlsOg==" "integrity": "sha512-YPJLSIY6uKUOp1k6BZYDq5GtEIdhfeK04UCbc9IPAVbdn/RNjkfrbnyd7smrsNkJhc0IFASLpd3AAYgwqgXKVQ=="
}, },
"accepts": { "accepts": {
"version": "1.3.8", "version": "1.3.8",
@ -13963,9 +13963,9 @@
} }
}, },
"three": { "three": {
"version": "0.133.1", "version": "0.140.2",
"resolved": "https://registry.npmjs.org/three/-/three-0.133.1.tgz", "resolved": "https://registry.npmjs.org/three/-/three-0.140.2.tgz",
"integrity": "sha512-WydohO8ll949B0FTD6MGz59Yv2Lwj8hvObg/0Heh2r42S6+tQC1WByfCNRdmG4D7+odfGod+n8JPV1I2xrboWw==" "integrity": "sha512-DdT/AHm/TbZXEhQKQpGt5/iSgBrmXpjU26FNtj1KhllVPTKj1eG4X/ShyD5W2fngE+I1s1wa4ttC4C3oCJt7Ag=="
}, },
"through": { "through": {
"version": "2.3.8", "version": "2.3.8",
@ -14277,4 +14277,4 @@
"dev": true "dev": true
} }
} }
} }

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>spine-threejs</title> <title>spine-threejs</title>
<script src="https://unpkg.com/three@0.138.3/build/three.js"></script> <script src="https://unpkg.com/three@0.141.0/build/three.js"></script>
<script src="../dist/iife/spine-threejs.js"></script> <script src="../dist/iife/spine-threejs.js"></script>
<script src="./OrbitalControls.js"></script> <script src="./OrbitalControls.js"></script>
</head> </head>

View File

@ -30,8 +30,8 @@
}, },
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme", "homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": { "dependencies": {
"@types/three": "^0.133.1", "@types/three": "^0.140.0",
"three": "^0.133.1", "three": "^0.140.0",
"@esotericsoftware/spine-core": "^4.2.2" "@esotericsoftware/spine-core": "^4.2.2"
} }
} }

View File

@ -22,7 +22,7 @@ Unity's physics components do not support dynamically assigned vertices so they
## Unity version ## Unity version
spine-unity is compatible with Unity 2017.1-2021.1. spine-unity is compatible with Unity 2017.1-2022.1.
## Usage ## Usage