Эх сурвалжийг харах

Merge branch '4.0-beta' of https://github.com/EsotericSoftware/spine-runtimes into 4.0-beta

Mario Zechner 4 жил өмнө
parent
commit
d285e25dcd

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

@@ -503,7 +503,10 @@ namespace Spine.Unity {
 		}
 
 		public void OnBecameVisible () {
+			UpdateMode previousUpdateMode = updateMode;
 			updateMode = UpdateMode.FullUpdate;
+			if (previousUpdateMode != UpdateMode.FullUpdate)
+				LateUpdate(); // OnBecameVisible is called after LateUpdate()
 		}
 
 		public void OnBecameInvisible () {