EsotericSoftware / spine-runtimes

2D skeletal animation runtimes for Spine.
http://esotericsoftware.com/
Other
4.42k stars 2.92k forks source link

[spine-unity] SkeletonRenderTexture set dynamic GameObject layer same as original Renderer #2648

Open mavlac opened 1 month ago

mavlac commented 1 month ago

When using the example SkeletonRenderTexture Component, new GameObject is created in hierarchy to hold Quad with RenderTexture Renderer. Sorting layer and sorting order values are mimicking the original Renderer as expected, but the GameObject Layer is not and kept Default.

Please consider this tiny touch, so the dynamically created Renderer is as close to original Renderer and so is for example being visible to the same Cameras when using layer mask culling.