When using the Skeleton-OutlineOnly
shader in URP with Depth of Field (DOF), the outline may not appear because the shader does not write to the depth buffer. This is a known limitation, as most shaders in the spine-unity package do not write to the depth buffer by default to allow for better alpha blending. To address this, you can modify the shader to include depth writing by adding ZWrite On
and appropriate alpha clipping lines. Alternatively, you can use a render texture approach, where you render the skeleton to a texture and then apply the outline effect, which can be more complex but avoids depth-related issues.