• Editor
  • spine导入到unity里时候,能使用2d光对动画进行光照?

spine动画是否能使用unity的2d光照效果?如果不能,我怎么对动画有光照效果?

  • Misaki и Harald ответили на это сообщение.
    Related Discussions
    ...
    • Изменено

    是的,Spine动画可以在Unity中使用2D光照效果。要实现这一点,你需要使用Spine的URP(Universal Render Pipeline)着色器。以下是具体步骤:

    1. 安装Spine URP着色器
    • Изменено

    bookrice Even with a built-in rendering pipeline, it is possible to reflect the effects of 2D lights by using the Spine/Sprite shader. You may want to see the example scene Spine Examples/Other Examples/Sprite Shaders:

    bookrice spine动画是否能使用unity的2d光照效果?如果不能,我怎么对动画有光照效果?

    Machine translation is a bit ambiguous, but I assume you mean 2D Lights as from Unity's URP 2D Renderer.

    You need to install the Spine URP Shaders UPM extension package, see the documentation here.
    Then you can use Universal Render Pipeline/2D/Spine/Skeleton Lit or Universal Render Pipeline/2D/Spine/Sprite shaders to receive light from URP 2D lights.

    Also check out the 2D/URP 2D Shaders.unity example scene which shows them in action (be sure to assign the Example 2D URP Asset in your project settings which has blue rim light set up).