1232 Commits

Author SHA1 Message Date
Harald Csaszar
e95e130e9b [unity] Changed implementation of previous bugfix commit ab91a35 of Editor error messages upon startup. Uses less code and executes a bit earlier. See #1779. 2021-01-07 20:52:14 +01:00
Harald Csaszar
ab91a3539d [unity] Fixed Editor error messages upon startup, most likely due to AssetDatabase not being fully initialized (Unity 2020.2). Closes #1779. 2021-01-07 20:25:01 +01:00
Harald Csaszar
a7f629f504 [unity] Fixed BoneFollowerGraphic silently failing at Transform instead of RectTransform by requiring component RectTransform. Closes #1828. 2021-01-07 16:20:19 +01:00
Harald Csaszar
769f048f55 [unity] Added a null-check for _diffuseRamp parameter at Sprite shaders GUI. Cleaned up URP 2D example assets: textures and materials now all using straight alpha textures, names shortened. 2020-12-22 17:17:33 +01:00
Harald Csaszar
2fde05e899 [unity] Fixed URP and LWRP Sprite shader ramp only respecting main directional light, see #1819. Addition: All Sprite shaders now provide four Diffuse Ramp modes as an Inspector Material parameter: Hard, Soft, Old Hard and Old Soft. 2020-12-09 19:01:03 +01:00
Harald Csaszar
473caafd00 [unity] Fixed SRP batching support at Sprite shader of URP and LWRP shaders, with enabled rim light they were not compatible. See #1813. 2020-12-09 13:39:24 +01:00
Harald Csaszar
16b95b971b [unity] Now all URP and LWRP shaders support SRP batching. Closes #1813. 2020-12-02 20:23:31 +01:00
Harald Csaszar
eb3d56c9e8 [unity] Fixed Atlas asset assignment upon import which did not prioritize an atlas of the same name as the skeleton. Closes #1818. 2020-12-01 16:20:12 +01:00
Harald Csaszar
f365815127 [unity] Fixed preferences constantly loading in Unity 2020.1+ when not at default location. Closes #1817. 2020-11-30 20:05:27 +01:00
Harald Csaszar
3151c18b6c [unity] SkeletonRenderer components now provide an additional update mode Only Event Timelines at the Update When Invisible property. Added methods to AnimationState for proper behaviour during transitions. Closes #1815. 2020-11-27 14:03:41 +01:00
Harald Csaszar
23bce387af [unity] Added problematic component/material combination check for Canvas Group Tint Black when not using a SkeletonGraphic Tint Black shader. See #1812. 2020-11-24 20:14:03 +01:00
Harald Csaszar
068a624608 [unity] Fixed regression of SkeletonMecanim not handling negative values at a State's Speed property. Now both Speed and Multiplier are respected. Closes #1810. 2020-11-20 21:24:02 +01:00
Harald Csaszar
6d83190946 [unity] Added null checks at BoundingBoxFollower classes to handle SkeletonData not being assigned. 2020-11-16 13:00:31 +01:00
Harald Csaszar
f1af1d5bf1 [unity] GetRemappedClone() method now provides an additional parameter pivotShiftsMeshUVCoords for MeshAttachments to prevent uv shifts at a non-central Sprite pivot. Closes #1809. 2020-11-13 19:12:05 +01:00
Harald Csaszar
2243ec9e98 [unity] Corrected incorrect using statement (leading to a compile error under some conditions), related to previous commit 75b9321. Added BoundingBoxFollowerGraphic component. [..] See #1770. 2020-11-12 12:19:30 +01:00
Harald Csaszar
d0681d7929 [unity] Previous commit 75b9321 was missing two added files. Added BoundingBoxFollowerGraphic component. [..] See #1770. 2020-11-10 16:45:09 +01:00
Harald Csaszar
75b932173d [unity] Added BoundingBoxFollowerGraphic component. Added Inspector context menu functions Add all BoundingBoxFollower GameObjects for SkeletonRenderer and SkeletonGraphic. Closes #1770. 2020-11-10 16:37:48 +01:00
Harald Csaszar
88f403f5fc [unity] RectMask2D no longer ignored by SkeletonGraphic with Multiple CanvasRenderers option enabled. Fixes #1802. 2020-10-28 14:59:43 +01:00
Harald Csaszar
239de24002 [unity] Fixed compile error in LWRP shaders due to incorrect include path. Closes #1793. 2020-10-21 14:48:43 +02:00
Harald Csaszar
d4654588fb [unity] Fixed animation not playing first time entering play mode after compilation. Related to disabled Domain/Scene reload. See #1621. 2020-10-19 18:46:07 +02:00
Harald Csaszar
17e8373e47 [unity] Fixed SkeletonMecanim handling negative NormalizedTime incorrectly. Closes #1790. 2020-10-19 17:13:34 +02:00
Harald Csaszar
3a950cd33e [unity] Now SpineSettings.asset file can be placed anywhere in the Assets directory. Closes #1789. 2020-10-19 14:07:19 +02:00
Harald Csaszar
90486705f6 [unity] Now providing BeforeApply update callbacks at all skeleton animation components. Closes #1783. 2020-10-14 12:17:01 +02:00
Harald Csaszar
c3bfac7edd [unity] Fixed a compile error on older .NET versions, introduced by last commit 75efe44. See #1765. 2020-10-07 20:33:51 +02:00
Harald Csaszar
75efe44fab [unity] Detecting and reporting more incorrect shader/component configurations via Inspector warning boxes and log output. Closes #1765. 2020-10-07 20:23:52 +02:00
Harald Csaszar
977133fc38 [unity] Fixed warnings/messages reported by Microsoft's Analyzers for Unity. Closes #1753. 2020-10-06 16:16:49 +02:00
Harald Csaszar
9bfe314aeb [unity] Fixed false warning issued on URP 2D shaders. Closes #1767. 2020-09-30 19:57:02 +02:00
Harald Csaszar
4ed4b87195 [unity] Added info text to "Mix and Match Equip" example scene that there is now a "Mix and Match Skins" example scene showing the new skin API. See #1628. 2020-09-30 17:17:16 +02:00
Harald Csaszar
c16cfdd158 [unity] Fix of compile error (occurring in Unity 2019) introduced by commit 899a109. See #1628. 2020-09-30 17:04:42 +02:00
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
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
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
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
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
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
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