• Unity
  • [Unity] Sprite Mask interactions don't work

  • 編集済み
Related Discussions
...
  • 編集済み

Unity 2021.3.6f1 with 2D URP shaders (4.1.3)
Spine 4.1.06
Runtimes: spine-unity-4.1-2022-07-14
OS: Windows 11

Steps to repro:

  1. Create a new Unity 2021.3.6 project using the new 2D URP template from Unity Hub
  2. Install latest Spine Runtimes and URP shaders using the Install from GIT URL option in package manager
  3. Import a Spine skeleton and place it in Hierarchy.
  4. Create a default 2D square in Hierarchy and add the Sprite Mask component to it.
  5. Switch the Spine skeleton's Mask Interactions mode to either Visible Inside or Visible Outside.
  6. Drag the mask on top of the skeleton and notice no interactions are happening. Also, when switching to Visible Inside mask mode, the skeleton remains fully visible at all times.

Hello,

Thank you for reporting your issue with the spine-unity 4.1 runtime. Our resident Unity expert, Harri, is out for the weekend and will get to your bug report next week.

Nevermind, I was using the wrong shader, this one works:

Thanks for getting back to us, very glad you've figured it out.