[Cubism SDK Version] Cubism SDK for Unity R5
[OS Name and Version] Windows 11
[Development Tools Used] Unity 6000.0.78f1
[Issue Description]
On the left is the model. It can be displayed when nothing else is present, but the background and UI completely cover it.
I adjusted the Sorting Layer and Position X to be the same, but nothing appears at all.
I searched on ChatGPT and Google, and they also suggested adjusting the Sorting Layer and Position X.
In the URP version of Cubism SDK for Unity, a custom render path is used for rendering. Due to this mechanism, model rendering is performed before transparent objects are rendered.
Since Sprites used for backgrounds and UI are transparent objects, they are rendered in front of the model.
To control the rendering order between Cubism models and objects like Sprites, please use the rendering interruption feature of Cubism SDK for Unity.
Additionally, you can avoid this issue by using Unity’s RenderTexture for off-screen rendering. You can render the output of a Camera displaying only the Cubism model into a RenderTexture, and then display that RenderTexture on the screen. Please refer to Unity’s official documentation for more details.