Based on my knowledge, the outline shader should work with different Canvas Render Modes, not just Screen Space - Overlay. However, when switching to Screen Space - Camera mode, you need to ensure proper setup.
The issue you're experiencing where only the outline (stroke) is visible is likely related to the rendering setup when using Screen Space - Camera mode. Here are some things to check:
Possible Solutions:
Check Z Spacing: When using Screen Space - Camera, make sure the Advanced - Z Spacing parameter at your SkeletonGraphic component is set appropriately (try a small non-zero value like 0.01) to prevent depth sorting issues.
Material Setup: Ensure you're using the correct SkeletonGraphic-compatible outline material. For SkeletonGraphic, you should use materials with Spine/SkeletonGraphic shaders, not regular Spine/Skeleton shaders.
Camera Distance: In Screen Space - Camera mode, the Canvas needs to be at an appropriate distance from the camera. Check that:
- The Canvas has a Camera assigned in the Render Camera field
- The Plane Distance is set to an appropriate value
- The skeleton isn't being clipped by the camera's near/far planes
Layer Rendering: Verify that the camera rendering the Canvas has the correct culling mask and can see the layer your Canvas is on.
If you're still experiencing issues after checking these settings, you might want to examine the working "Outline Shaders" example scene more closely to compare the Canvas and Camera settings with your setup.