1225 Commits

Author SHA1 Message Date
Harald Csaszar
899a109a13 [unity] Added an example scene "Mix and Match Skins" demmonstrating a character customization wardrobe system using the new Skins API, using the mix-and-match ("Spine dudes") asset. See #1628. 2020-09-30 16:57:20 +02:00
Harald Csaszar
5c1faa85af [unity] Fixed all Tint and TintBlack shader blend behaviour, previous changes by commit d43b7b0 were incorrect in some cases. Closes #1756. 2020-09-29 16:38:37 +02:00
Harald Csaszar
87c989b258 [unity] minor cleanup, removed unnecessary meta files of packages. 2020-09-28 13:24:55 +02:00
Harald Csaszar
d43b7b0a9f [unity] Fixed enabling CanvasGroup Compatible at Spine-SkeletonGraphic-TintBlack shader causing Additive blend mode not to work but instead hide the attachment completely. Now providing a Canvas Group Tint Black parameter a SkeletonGraphic Inspector in the Advanced section. Closes #1756. 2020-09-11 20:38:14 +02:00
Harald Csaszar
4cf792f51d [Unity] Fixed incorrect color calculations at TintBlack shaders, TintBlack color was applied incorrectly leading to lighter borders at semitransparent borders. Fixed additive blend mode at SkeletonGraphic-TintBlack. Closes #1747. 2020-09-11 18:38:03 +02:00
Harald Csaszar
faf9bbfe87 [unity] Removed redundant [SerializeField] attributes at public members. Closes #1757. 2020-09-10 18:06:26 +02:00
Harald Csaszar
263097953e [unity] Deleted accidentally added/duplicate CHANGELOG.md file in spine-unity/Assets/Spine. How did this file get there in the first place?? 2020-09-03 17:51:45 +02:00
Harald Csaszar
cf7035e112 [unity] Fixed URP 2D Sprite shader not respecting straight alpha blend modes. Closes #1755. 2020-09-03 17:36:55 +02:00
Harald Csaszar
24e17bfeea [unity] Fixed SkeletonMecanim MixModes being incorrectly initialized (AlwaysMix vs MixNext) when Custom MixMode is enabled and the Component was just created/reset or new Mecanim layers were added. 2020-09-02 20:14:02 +02:00
Harald Csaszar
7011a462db [unity] Added root motion scale parameters. Added SkeletonRootMotion.AdjustRootMotionToDistance() and more for delta compensation (to e.g. stretch a jump to a given distance). Closes #1754. 2020-09-02 19:48:28 +02:00
Harald Csaszar
9667bd2293 [unity] Added OnMeshAndMaterialsUpdated callback for SkeletonRenderSeparator and SkeletonPartsRenderer. Closes #1752. 2020-09-01 16:51:02 +02:00
Harald Csaszar
cccd2132bf [unity] Added/updated HelpUrl of Spine components, now pointing to proper sections of online spine-unity doc. 2020-09-01 16:25:23 +02:00
Harald Csaszar
30ce32519f [unity] Added outline-only shader Spine/Outline/OutlineOnly-ZWrite respecting overlapping attachments. Renders in two passes. Closes #1751. 2020-08-31 19:34:40 +02:00
Harald Csaszar
82edea95ee [unity] Updated officially supported Unity versions in changelog and readme files. 2020-08-17 16:01:14 +02:00
Harald Csaszar
996cbeaac4 [unity] Fixed Sprite shader render queue property being too limited. Now using normal int property instead of range slider and displaying the result render queue below. Closes #1737. 2020-08-12 12:49:44 +02:00
Harald Csaszar
11006baa65 [unity] Fixed URP Sprite shader treating skeleton alpha incorrectly. Closes #1735. 2020-08-07 15:40:35 +02:00
Harald Csaszar
bb34e33aee [unity] Moved SkeletonGraphic Inspector property "Update when Invisible" to the Advanced section for consistency. 2020-08-06 18:41:43 +02:00
Harald Csaszar
978b305717 [unity] Added frustum culling / update mode parameters Update When Invisible and UpdateMode to all Skeleton components. Closes #1595. 2020-08-05 19:24:49 +02:00
Harald Csaszar
a67094d642 [unity] Ordered attribute drawers SpineSlot alphabetically and SpineBone as hierarchial tree selector. Closes #1731. 2020-08-03 19:21:14 +02:00
Harald Csaszar
5d61effc68 [unity] Fixed automatic asset import in Unity 2020.1 (uses Asset Pipeline V2). Also fixes import when using Asset Pipeline V2 at Unity 2019.X. Closes #1727. 2020-07-30 16:02:27 +02:00
Harald Csaszar
3c94f52b52 [unity] Added support for double-sided lighting at SkeletonLit shaders (including URP and LWRP packages). Closes #1730. 2020-07-30 12:13:52 +02:00
Harald Csaszar
0e2ced5042 [unity] PointFollower and BoundingBoxFollower now correctly unsubscribe from events on deletion / disable. Closes #1729. 2020-07-29 11:53:32 +02:00
Harald Csaszar
3be202711c [unity] Added a warning box when URP Sprite shader is improperly configured for receiving shadows ('Add Normals' needs to be enabled). Closes #1726. 2020-07-24 14:25:41 +02:00
Harald Csaszar
7611f551eb [unity] Updated license headers at Timeline classes. 2020-07-23 16:29:41 +02:00
Harald Csaszar
8c009e2f56 [unity] Added Timeline support for SkeletonGraphic. Fixed multi-track Timeline preview when scrubbing in the Editor (note: requires ascending track ordering). Closes #1313. Closes #1724. 2020-07-23 16:28:37 +02:00
Harald Csaszar
498cf7ac6f [unity] Changed Spine/Sprite shader parameter name from Overlay Color to Overlay Color & Alpha, as functionality looks broken if you miss that you have to set the alpha value to > 0. 2020-07-17 10:47:27 +02:00
Harald Csaszar
c6fb1795cf [unity] Fixed ZWrite NormalMap issue with Unity 2019.4.3f1 URP 7.4.1. Closes #1720. 2020-07-14 18:09:22 +02:00
Harald Csaszar
844d13d1ef [unity] Fixed a warning occurring in newer Unity versions, two static extension method classes named SkeletonExtensions in different namespaces but the same file. 2020-07-14 17:03:38 +02:00
Harald Csaszar
84443288b5 [unity] Fixed exception when new Unity 2019.3 Enter Play Mode has disabled domain reload. Closes #1621. 2020-07-10 18:37:36 +02:00
Harald Csaszar
8a444681d2 [unity] SkeletonMecanim now provides additional parameter Custom MixMode which can be disabled to use recommended MixMode settings. By default the parameter is enabled to maintain current 3.8 behaviour. 2020-07-10 14:46:06 +02:00
Harald Csaszar
7626f3b58a [unity] Fixed SkeletonMecanim blend result weights at mode MixNext, no longer bahaving unexpectedly. At additive layers, MixMode.MixNext is always set to MixMode.AlwaysMix since MixNext makes no sense there. Closes #1718. 2020-07-08 20:05:47 +02:00
Harald Csaszar
a062dd7b5a [unity] BoundingBoxFollower Add Bone Follower button was always disabled. Also calling BoundingBoxFollower.Initialize() explicitly in editor code now (might resolve some problems with recent Unity versions). Closes #1717. 2020-07-06 20:07:45 +02:00
Harald Csaszar
981a3015fa [unity] Added file missing in last commit 528ab0c. See #1417. 2020-07-03 15:23:27 +02:00
Harald Csaszar
528ab0cff2 [unity] Added Root Motion support for SkeletonAnimation, SkeletonMecanim and SkeletonGraphic. See #1417. 2020-07-03 14:59:14 +02:00
Harald Csaszar
f8574f1392 [unity] Fixed a bug at SkeletonGraphic where child renderers were still shown although the parent is disabled when Multiple CanvasRenders is enabled. Closes #1715. 2020-06-30 21:02:05 +02:00
Harald Csaszar
f946fd8b56 [unity] Fixed SkeletonGraphic Mesh memory leak on Initialize(). Closes #1714. 2020-06-25 15:58:39 +02:00
Harald Csaszar
7ecc3b6f95 [unity] Reload during Play mode now copies registered event subscribers from before reload. Closes #1704. 2020-06-24 16:08:02 +02:00
Harald Csaszar
06bd6a90bd [unity] Added SkeletonDataAsset 'Reload' button for SkeletonGraphic. See #1704. 2020-06-18 17:41:50 +02:00
Harald Csaszar
3a1dcd651a [unity] Fixed shader compile error with Unity 2019.4 and Urp 7.4.1. Closes #1700. Shader cleanup, removal of unused instancing vars and separate alpha texture variable. 2020-06-17 21:33:37 +02:00
Harald Csaszar
eadce3188c [unity] Fixed BoundingBoxFollower exception in editor upon loading. Closes #1696. 2020-06-08 20:18:11 +02:00
Harald Csaszar
1707c8ce42 [unity] Fixed a clipping bug when there are two clipping meshes and clipping-end-slot is a skin bone that is disabled (Clipping.endClipping not called when slot.bone.active==false). See #1694. 2020-06-05 21:30:59 +02:00
Harald Csaszar
6e9ad610d6 [unity] Fixed Prefab with SkeletonRenderSeparator constantly loading in editor. Closes #1626. 2020-06-03 18:14:16 +02:00
Harald Csaszar
c54745cbc7 [unity] Fixed an issue related to SkeletonRenderer and Prefabs not calling LateUpdate. Closes #1689. 2020-06-03 15:57:07 +02:00
Harald Csaszar
05d8b248b0 [unity] Fixed Mecanim state not updated when referenced clip's Loop Time changes. Also fixes Override controllers which never used the override clips' loop parameter but the original one. Closes #1649. 2020-05-29 16:20:37 +02:00
Harald Csaszar
bc559625f2 [unity] SkeletonGraphic now supports multiple atlas textures via additional CanvasRenderer GameObjects. Closes #1592. SkeletonGraphic now also supports SkeletonRenderSeparator functionality. Closes #1254. See SkeletonRenderSeparator.unity scene for a usage example. 2020-05-25 20:22:04 +02:00
Harald Csaszar
6a9403511d [unity] Added documentation section to GetRepackedSkin methods mentioning the requirement for Destroy() call on output textures and materials. Added to example scene component code as well. Closes #1681. 2020-05-18 17:21:58 +02:00
Harald Csaszar
b1e4c8f2b7 [unity] Fixed SkeletonMecanim throwing exception at non-Spine clip. Closes #1675. 2020-05-14 17:50:45 +02:00
Harald Csaszar
3e93e2daf1 [unity] Fixed ghost-movement of Ragdoll components: They did not update the RagdollParent transform. Activate correct behaviour by disabling the inspector property Old Ragdoll Behaviour which was introduced to automatically be backwards-compatible. Closes #1670. 2020-05-07 15:10:20 +02:00
Harald Csaszar
c73f8c1f42 [csharp] Ported automated test set 'AnimationStateTests' to csharp and Unity. 2020-05-06 16:03:04 +02:00
Harald Csaszar
d499dba7c4 [unity] Unity SpriteAtlas support: Upon build to platform, the internally generated sprite atlas texture is used instead of the png file generated for the editor (to reduce additional memory usage). This completes Unity SpriteAtlas support, together with previous commit d35550d. Closes #940. 2020-04-29 20:44:24 +02:00