Hello,

I'm making a 3D game in unity HDRP (2021) and I wonder if there's a guide to export for unity HDRP since I just saw URP shaders. What I'm going to use Spine for is just UI - buttons / animated backgrounds during loading screens and so on, not characters, everything will be placed on the UI canvas.

Can this be achieved?

Best Regards.

Related Discussions
...

To use Spine animations in Unity HDRP for UI elements, you can follow a similar approach as with URP, but with some considerations. While there isn't a specific HDRP package for Spine, you can use the SkeletonGraphic component for UI elements, which is designed to work with Unity's UI system. This component should work with HDRP as it primarily deals with UI rendering. However, you may need to create or modify shaders to ensure compatibility with HDRP, especially if you want to use advanced features like HDR or custom lighting effects.

For exporting your Spine assets, use the straight alpha workflow to ensure compatibility with non-Spine shaders. You might need to adjust your shaders to handle features like PMA (Premultiplied Alpha) if you use them. While there isn't a dedicated HDRP guide, the principles of shader modification and UI integration remain similar to those in URP. You can refer to the Spine-Unity documentation for more details on shader customization.

    Spinebot

    Unfortunately, I know nothing about shaders, but I like the SkeletonGraphic component, it's exactly what I need. To be honest I dont need anything complex just simple UI moving, even sprite-sheets might work in my case.

    Hi again,
    I just downloaded the spine package and imported it into an HDRP project and open this scene:

    6 SkeletonGraphic

    Things seem to be working, but she appears a bit pale and the material has this error when I select the game object

    ![

    • Misaki ha risposto a questo messaggio

      skinwalker The reason you are getting that warning is because your Unity project's color space is set to Linear, but the example skeleton's textures are exported in PMA. PMA textures are not available in the Linear color space. To display the example skeleton correctly, go to Edit > Project Settings, then select the Player category,navigate to the Other Settings, open the Rendering section, and change the Color Space to Gamma.

        Misaki

        Hi, I realized that yes, but in my case since it's a 3D game we use Linear color space. I managed to get the character to have brighter colors by going to the texture's import settings and clicking on sRGB = true.

        Still this is not as good as going to Gamma mode and I'd like to get the same result. I hope if in Spine I use the correct export settings (PMA = false) and Blend = true, I will get a better result in Linear color space.

        • Misaki ha risposto a questo messaggio

          skinwalker I understand, so if you want to use linear color space, the skeleton textures need to be packed with Bleed enabled. Unfortunately, the example skeletons in the Spine Examples folder are only packed with PMA. If you want to see the correct state of each sample skeleton, you will need to open Spine and repack the textures.
          Please see the following section of the documentation for the correct texture packer settings in Spine and the correct texture and material settings in Unity when using the Straight Alpha workflow:
          spine-unity Assets #Correct Texture Packer export and Texture and Material import settings

            Misaki

            Thanks, I will try that out! Also does Spine version matter with the plugin I downloaded from the site for Unity? Do these versions have to match or maybe Spine can be older? (I want to know if I have to keep updating my unity plugin).

            Best Regards!

            • Misaki ha risposto a questo messaggio

              skinwalker The major and minor versions of the spine-unity runtime must match the Spine editor. Patch versions usually don't need to match, but in rare cases, updating the runtime may be necessary to address fixes in the latest editor version. Since patch updates for the runtime and editor are not synchronized, they rarely align.
              So in general, there is no need to update the runtime in your Unity project every time a new version is released. If you encounter any problems or behavior that you think is a bug, please try updating to the latest version and see if it solves the problem, and if it does not, please report it to us.