From 2f7b431821a4965d6e580b3fbc4fff8f74b92b39 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 11 Feb 2025 14:49:29 +0100 Subject: [PATCH] [unity] SkeletonRenderTexture set dynamic GameObject layer same as original Renderer. Closes #2648. --- .../SkeletonRenderTexture/SkeletonRenderTexture.cs | 1 + spine-unity/Assets/Spine/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs index a04063b9f..7a2944b3d 100644 --- a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs +++ b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTexture.cs @@ -86,6 +86,7 @@ namespace Spine.Unity.Examples { void CreateQuadChild () { quad = new GameObject(this.name + " RenderTexture", typeof(MeshRenderer), typeof(MeshFilter)); quad.transform.SetParent(this.transform.parent, false); + quad.layer = meshRenderer.gameObject.layer; quadMeshRenderer = quad.GetComponent(); quadMeshFilter = quad.GetComponent(); diff --git a/spine-unity/Assets/Spine/package.json b/spine-unity/Assets/Spine/package.json index f04963b1b..cae12a2b2 100644 --- a/spine-unity/Assets/Spine/package.json +++ b/spine-unity/Assets/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.2.96", + "version": "4.2.97", "unity": "2018.3", "author": { "name": "Esoteric Software",