5868 Commits

Author SHA1 Message Date
Harald Csaszar
fab2b6e4ce [unity] Hopefully fixed Spine Preferences textureSettingsReference setting changing between MacOS and Win. See #1895. 2021-05-25 17:22:08 +02:00
Harald Csaszar
f0f52da3ad [unity] Fixed too high Mesh vertex count when multiple submeshes are used (in combination with clipping). Supported on Unity 2019.3+. Closes #1894. 2021-05-20 19:29:56 +02:00
Harald Csaszar
844c614a8c [unity] Fixed error message on entering Play mode when AnimationReferenceAsset selected. Closes #1892. Fixed NullReferenceException from SkeletonDataPreview timeline bar on entering Play mode. Closes #1893. 2021-05-19 17:54:50 +02:00
Harald Csaszar
01b436b4f9 [unity] Minor: Updated documentation and example scene scripts regarding GetRepackedSkin, GetRepackedAttachments and GetRemappedClone to describe texture cache and cleanup. 2021-05-17 19:59:51 +02:00
badlogic
20b39fd201 Merge branch '3.8' of https://github.com/esotericsoftware/spine-runtimes into 3.8 2021-05-17 13:33:34 +02:00
badlogic
69647313ef [ts][player] Better error message serialization. 2021-05-17 13:33:25 +02:00
Harald Csaszar
c950dff9aa [unity] Fixed blend mode materials not being generated upon first import. Closes #1891. 2021-05-14 18:04:01 +02:00
Harald Csaszar
938a8c8369 [unity] Fixed SkeletonGraphic Mesh memory leak. Closes #1887. 2021-05-07 20:50:01 +02:00
badlogic
b17700f1a0 Merge branch '3.8' of https://github.com/esotericsoftware/spine-runtimes into 3.8 2021-05-07 12:01:22 +02:00
badlogic
e59d6be170 [libgdx] Closes #1886, use PolygonSpriteBatch in simple tests. 2021-05-07 12:01:15 +02:00
badlogic
33780f6445 Merge branch '3.8' of https://github.com/esotericsoftware/spine-runtimes into 3.8 2021-05-06 15:43:11 +02:00
badlogic
bef00617d7 [ts] Fix applying attachment timeline in AnimationState
AnimatinState.setAttachment was directly setting the slot.attachment field instead of calling the setter. This caused the deform array from a previous attachment to linger around and be applied to the current attachment incorrectly.
2021-05-06 15:42:58 +02:00
Harald Csaszar
700e316e57 [unity] Attachment.GetRemappedClone(Sprite) method now provides an additional optional parameter useOriginalRegionScale. 2021-04-30 18:02:37 +02:00
RH
63ef1938b9
Allow SkeletonBinary and SkeletonJson to own externally created AttachmentLoader (#1846) 2021-04-29 14:07:16 +02:00
Harald Csaszar
25d7f8266f [unity] Fixed UpdateMode when invisible not being used when instantiated off-screen. Closes #1883. 2021-04-28 19:54:48 +02:00
Harald Csaszar
1e888db53a [unity] Prevent null reference exception when using Advanced - Fix Draw Order and disabling the renderer and/or GameObject. 2021-04-22 11:45:58 +02:00
Harald Csaszar
e425d64d2c [unity] Fixed RootMotion scripts in combination with Rigidbody components. Now works smoothly. Closes #1880. 2021-04-21 20:27:52 +02:00
Harald Csaszar
692eed3a75 [unity] Root motion delta compensation now allows to add translation root motion to e.g. adjust a horizontal jump upwards or downwards. Fixed delta compensation to also respect any Skeleton-, Transform- or parent Bone scale. See #1876. 2021-04-14 17:56:59 +02:00
Harald Csaszar
dd7c3b1bcc [unity] Root motion delta compensation now allows to only adjust X or Y components instead of both. See #1876. 2021-04-12 17:31:00 +02:00
Harald Csaszar
7782b01cdf [unity] Fixed a compile error occurring only on Unity 2017, Vector2 not supporting operator* (introduced by commit 758a83a). See #1876. 2021-04-09 17:30:55 +02:00
Harald Csaszar
758a83ac96 [unity] SkeletonRootMotion components now support arbitrary bones in the hierarchy as Root Motion Bone. Now supporting arbitrary Skeleton.ScaleX/Y and parent bone scale. Closes #1876. 2021-04-09 17:15:45 +02:00
Harald Csaszar
6c40624d5e [unity] Set Mipmap Bias was not persisted on recent Unity versions. Closes #1877. 2021-04-08 19:17:46 +02:00
Harald Csaszar
97b3f3058b [unity] Added RootMotionDeltaCompensation example component demonstrating simple root motion delta compensation. See #1873. 2021-04-06 17:44:50 +02:00
badlogic
748a03c7d7 [ts] Fix for NaN bounds
This is a temporary fix. Customer send reproduction sample. A slot has a mesh and corresponding deform. The number of vertices in the mesh is != the number of vertices in the deform, resulting in NaNs, which propagate to the bounds calculation of the web player. It is unclear how the mesh and deform can have a different number of vertices.
2021-04-06 14:13:04 +02:00
Harald Csaszar
3fdbf9a061 [unity] Reduced GC footprint of GetRepackedSkin() by reusing static Lists. Closes #1872. 2021-04-02 15:00:32 +02:00
Harald Csaszar
a24c6600f5 [unity] Fixed previous commit not compiling in Unity 2017 due to Vector2.operator* not being supported yet (commit 2bc8827). See #1871. 2021-04-02 12:45:55 +02:00
Harald Csaszar
2bc88270d4 [unity] Fixed Texture 'Max Size' setting causing incorrect image regions (e.g. in repack operations). Closes #1871. 2021-04-02 12:25:23 +02:00
Harald Csaszar
1d2df65008 [unity] Improved binary vs json file detection upon skeleton import checks, should fix a reported (potentially asian locale related) issue. Closes #1867. 2021-04-02 09:29:17 +02:00
Harald Csaszar
1057889c21 [xna][monogame] Fixed examples using incorrect time update, leading to jittery playback. Closes #1868. 2021-03-26 09:49:19 +01:00
Harald Csaszar
fdd3a663ef [unity] Fixed binary .skel.bytes file incorrectly being reported as .json (and import being aborted). Closes #1867. 2021-03-24 19:27:15 +01:00
Harald Csaszar
cd3b9816c2 [xna] Fixed an example shader fx compile error (occurring under some setups) at a pow() call. 2021-03-22 15:16:43 +01:00
Harald Csaszar
26b6d0816c [unity] Timeline flip track now displays Flip X/Y in track editor instead of class name. Closes #1863. 2021-03-19 18:18:01 +01:00
Harald Csaszar
0fb0b065d7 [unity] Fixed SkeletonMecanim BlendTree animations being incorrectly applied on WebGL. Was numeric problem of weight == 0 and actual weight being e.g. 1.1E-15. Closes #1862. 2021-03-19 16:10:42 +01:00
Harald Csaszar
bb0a4f6998 [unity] Fixed error message output behaviour in SkeletonRenderer.Initialize when quiet is set (quiet logic was just plain wrong). 2021-03-18 17:03:03 +01:00
Harald Csaszar
417388d2e7 [unity] Now detecting and warning when binary or json file has been exported with the opposite ending. Improved loading error reporting behaviour. Closes #1857. 2021-03-16 15:09:04 +01:00
Harald Csaszar
305bb21615 [unity] minor: increased Timeline UPM package version number since dependency versions were increased in last commit. 2021-03-10 14:48:50 +01:00
Harald Csaszar
6c34d1f0a0 [unity] Fixed Timeline track displaying None as SkeletonAnimation reference on Unity 2020.1+. Fixed by increasing minimum Timeline dependency version to 1.2.10 (still compatible with the same Unity versions), as this issue shows only until 1.2.9. Closes #1855. 2021-03-10 14:42:04 +01:00
Harald Csaszar
7cd2c12443 [unity] Fixed SkeletonGraphic Skeleton property not calling Initialize(), as SkeletonRenderer does. Closes #1858. 2021-03-09 12:06:02 +01:00
Harald Csaszar
055a2d993d [unity] Fixed incorrect warnings being issued at unused leftover PMA material keyword. Now when the keyword is unused, no warning is issued. Closes #1856. 2021-03-08 18:09:31 +01:00
Harald Csaszar
2a3d5245d9 [unity] Added null check for SkeletonRenderer.GenerateMeshOverride as reported on the forum. 2021-03-08 12:52:15 +01:00
Harald Csaszar
07b7b9371c [unity] Increased UPM package versions for changes of last commit d50cdef. 2021-03-04 18:31:18 +01:00
Harald Csaszar
d50cdef325 [unity] Corrected and unified Additive Slot behaviour of commit c5c7174 for URP and LWRP shaders (2D and 3D). Now only active for PMA blending and correctly performing alpha clip. See #1850. 2021-03-04 17:47:48 +01:00
Harald Csaszar
47e357aa88 [unity] Fixed Spine/Sprite core shaders now correctly drawing Additive Slots. Closes #1853. 2021-03-04 17:25:19 +01:00
Harald Csaszar
c5c71747c3 [unity] Fixed single pass additive slot blend mode for all URP and LWRP shaders (2D and 3D). Closes #1850. 2021-03-03 20:18:35 +01:00
Harald Csaszar
16e3de63cc [unity] NewSkeletonAnimationGameObject and Initialize() now provide a quiet parameter to omit material warnings. Closes #1852. 2021-03-03 17:07:42 +01:00
Harald Csaszar
7ea2f19836 [unity] GetRemappedClone caused incorrect results at 270 degree roated MeshAttachments. See #1847. 2021-03-01 17:27:00 +01:00
Harald Csaszar
2112d7f6f5 [cpp] Fixed SkeletonBinary access violation if atlas and skeleton data mismatch (when attachment not found). Closes #1849. 2021-02-25 11:58:40 +01:00
Harald Csaszar
0e5d7adf1c [ue4] Added preview skin / initial skin functionality for USpineWidget. Closes #1845. 2021-02-25 11:58:40 +01:00
Harald Csaszar
38d8a1362a [unity] Fixed GetRepackedSkin supporting 270 degree rotation of MeshAttachments (new atlas format, when packed with mode Polygons). Closes #1847. 2021-02-22 20:42:57 +01:00
Harald Csaszar
4a0b30dd2f [unity] Fixed URP and LWRP shaders Sprite and SkeletonLit not handling shadows correctly after 180 degree rotation (normal needs to be flipped for bias direction). Now URP shaders no longer require Advanced - Add Normals enabled to receive shadows. Closes #1842. 2021-02-17 20:16:56 +01:00