Hi! I'll try to make an outline for a character. I create a copy of the original material and set it to Outlined in the shader properties. On my Spine object, I add SkeletonRendererCustomMaterials and fill in the Custom material overrides fields (0 = originalMaterial, 1 = OutlineMaterial). But in the Scene view, I only see the silhouette from the OutlineMaterial, not the entire character with an outline. I do everything as described in the blog on the site. Unity 2022.3.47f1, Package version: spine-unity-4.2-2025-02-24.unitypackage. What am I doing wrong?
](https://)
Outline trouble
It seems like the issue you're experiencing with the outline shader is related to the rendering order and the use of materials. When using outline shaders in Unity with Spine, it's important to ensure that the outline is rendered behind the main character mesh. This can be achieved by using a second render pass. You should ensure that the "normal skeleton" is drawn on top of the outline pass. This is typically done by having two separate materials: one for the main texture and one for the outline, and ensuring the outline is rendered first. You might also need to adjust the Z position slightly to ensure proper rendering order, as mentioned in the forum discussions. Additionally, make sure you are using the correct shader for your render pipeline (URP or Built-In).
UPD: It seems that the problem is in some Unity settings or that the target platform is WebGL. Since the example from the package also displays SpineBoy on the raptor incorrectly.
It seems I finally found a solution to this problem with the SkeletonExistingMesh component. But it's very strange that the shaders intended for URP still don't work with the WebGL build.
@m_fedorov According to your first screenshot, you have been using Built-In Render Pipeline shader with URP. Please check out the URP outline shader example scene Outline Shaders URP
.
See the FAQ under "The Outline shader displays only outlines in my URP project. Why?"
m_fedorov But it's very strange that the shaders intended for URP still don't work with the WebGL build.
You are not using shaders intended for URP and you're viewing the non-URP outline shaders example scene Outline Shaders
of the core spine-unity package instead of Outline Shaders URP
of the Spine URP Shaders package.