ソースを参照

[unity] Fixed UpdateWhenInvisible being incorrect when using SkeletonRenderSeparator. See #2519.

Harald Csaszar 1 年間 前
コミット
24074454d1

+ 3 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs

@@ -239,6 +239,7 @@ namespace Spine.Unity {
 					Initialize(false);
 					Initialize(false);
 					if (meshRenderer)
 					if (meshRenderer)
 						meshRenderer.enabled = false;
 						meshRenderer.enabled = false;
+					updateMode = UpdateMode.FullUpdate;
 				}
 				}
 			}
 			}
 			remove {
 			remove {
@@ -331,7 +332,8 @@ namespace Spine.Unity {
 
 
 		public virtual void Awake () {
 		public virtual void Awake () {
 			Initialize(false);
 			Initialize(false);
-			updateMode = updateWhenInvisible;
+			if (generateMeshOverride == null || !disableRenderingOnOverride)
+				updateMode = updateWhenInvisible;
 		}
 		}
 
 
 #if UNITY_EDITOR && CONFIGURABLE_ENTER_PLAY_MODE
 #if UNITY_EDITOR && CONFIGURABLE_ENTER_PLAY_MODE

+ 1 - 1
spine-unity/Assets/Spine/package.json

@@ -2,7 +2,7 @@
 	"name": "com.esotericsoftware.spine.spine-unity",
 	"name": "com.esotericsoftware.spine.spine-unity",
 	"displayName": "spine-unity Runtime",
 	"displayName": "spine-unity Runtime",
 	"description": "This plugin provides the spine-unity runtime core.",
 	"description": "This plugin provides the spine-unity runtime core.",
-	"version": "4.1.41",
+	"version": "4.1.42",
 	"unity": "2018.3",
 	"unity": "2018.3",
 	"author": {
 	"author": {
 		"name": "Esoteric Software",
 		"name": "Esoteric Software",