how to use Tint Black in 2D Renderer Light( Unity 2022.3)
eunjoo Thank you for sharing the screenshots! The component and material settings appear to be correct, so I guess that the Render Pipeline assets set up in your project are incorrect.
For example, if I were to display skeletons using the Universal Render Pipeline/2D/Spine/Sprite
shader with a Render Pipeline asset for 3D renderer, it would look like this:
If the Render Pipeline asset for 2D renderer is set up correctly, it should look something like this:
You say it will be correct in game view, so it could be that some assets are set correctly for some quality levels in the Quality settings in the Project Settings, but other levels are set incorrectly.
Could you please confirm that the correct Render Pipeline assets are being used?
Misaki 네 안타깝게도, 모든 랜더 파이프라인 자산은 올바르게 사용되고 있습니다.
이후 패키지 임포팅 문제도 있을 것이라 판단하여, 라이브러리 폴더를 삭제후 다시 켜봤습니다.
스파인에서 제작한 알파 애니메이션이 검은색으로 변하는 것은 사라진 것 같습니다.
하지만 아직도 2D 라이트를 비출 때 일부 이미지가 잘못 출력되고 있습니다.
[비정상]
[원본]
그리고 여전히 에디터상에서는 스파인이 정상적으로 보이지 않네요.
[게임 뷰]
[에디터뷰]
(그리고 자세히 보시면 알겠지만 우리가 보는 방향에서 오른쪽 볼터치가 정상적인 블랜딩 상태이고, 왼쪽 볼터치-2D라이트의 영향을 받는 영역-가 어두워진 것을 확인할 수 있습니다.)
eunjoo I am sorry to hear that the problem still persists. Could you please send us via email a minimal Unity project that can reproduce the problem?: contact@esotericsoftware.com
Please include the URL of this forum thread in the email so we know the context. Then we can take a look at what's wrong.
eunjoo Thanks for sending the Unity package! It turns out that the problem still seems to be caused by a misconfigured render pipeline.
Here is the image when I use the Example 2D URP Asset
that comes with the URP extension package, which is for URP 2D Renderer:
Here is the image when I use the Example URP Asset
that comes with the URP extension package, which is for URP 3D Forward Renderer:
Please check and look at our examples carefully. Just in case you need to know how to import the examples, select Spine Universal RP Shaders in the Package Manager, expand the "Samples" column and click the Import button (In the screenshot below, it's changed to Reimport
, but if you haven't imported it yet, it should be Import
.):
Misaki 고맙습니다 덕분에 문제를 해결했습니다!
에디터는 랜더 파이프라인 세팅에서 디폴트 랜더러를 기준으로 보여진다는 걸 알았어요.
하지만 안타깝게도 우리는 기본적으로는 3D 게임이고, 부분적으로만 2D 랜더러를 사용합니다.
때문에 디폴트 랜더러를 2D 랜더러로 설정하면 다른 3D 씬의 에디터에서 설정이 힘들어 스파인의 에디터 화면을 포기하기로 했습니다.
디폴트가 3D URP로 설정되어 에디터상에서 잘못보이더라도 스파인을 비추는 카메라가 2D 랜더러 파이프라인 세팅이라면 정상 출력된다는 것을 확인했기 때문입니다.
도움에 감사드립니다!