• Unity
  • Correct Shader for URP

Hi! I followed the blog posting, but am confused as to what shader I am intended to use to get my character to show up in the the URP. I have updated my Project settings, and added the Spine package correctly. When I choose URP>Spine>Sprite, my character disappears. I did update materials to URP compatible, but many said they were unable to update. Any words of advice?

Related Discussions
...
  • Đã chỉnh sửa

Most likely you are using the 3D Spine shaders in a 2D URP environment.
The proper one would then be Universal Render Pipeline/2D/Spine/Sprite instead of Universal Render Pipeline/Spine/Sprite (note the 2D).

All shaders are listed here:
spine-unity Runtime Documentation: URP Shaders Extension UPM Package

Hi! Than you fr your response! I did go back to confirm that I was using 2D, and I was. Here is a screen shot that shows the correct material in the bottom right. You'll see the character is not rendering in the camera, and is only outlined in the scene view.

Thanks for getting back to us. The screenshot above showed otherwise, which was why I asked.

Does it display anything if you switch to other Universal Render Pipeline/2D/Spine shaders? Or any non-Spine ``Universal Render Pipeline/2D` shaders?

Are you perhaps using Unity 2019.4 and URP version 7.4.1? If yes, we will be releading new packages with a bugfix for this compile error in the next few hours hopefully. Issue ticket link: [unity] Unity 2019.4 and Urp 7.4.1 shader error · #1700

Thank for checking back! I only had only 2 other options under URP/2D Shaders, both which seemed to have a normal reaction. Switching to URP/2D/Spine/Sprite made a new, weird error (all posted below).

I am using 2020.1 and URP 7.4.1. I'll look for the new package!

Thanks for the additional info. This looks as if it's the said compile error issue.

Please download the latest packages here (both the spine-unity unitypackage and the URP extension package have been updated):
Spine Unity Download

Please let us know if it fixes the issue for you!