Explorar o código

[unity] Build compile error after commit 01b8c06 due to unguarded using UnityEditor.namespace. Closes #2222.

Harald Csaszar %!s(int64=2) %!d(string=hai) anos
pai
achega
07b54ee18e

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

@@ -28,8 +28,10 @@
  *****************************************************************************/
  *****************************************************************************/
 
 
 using System.Collections.Generic;
 using System.Collections.Generic;
-using UnityEditor.Animations;
 using UnityEngine;
 using UnityEngine;
+#if UNITY_EDITOR
+using UnityEditor.Animations;
+#endif
 
 
 namespace Spine.Unity {
 namespace Spine.Unity {
 	[RequireComponent(typeof(Animator))]
 	[RequireComponent(typeof(Animator))]

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

@@ -51,8 +51,10 @@
 #define SPINE_OPTIONAL_MATERIALOVERRIDE
 #define SPINE_OPTIONAL_MATERIALOVERRIDE
 
 
 using System.Collections.Generic;
 using System.Collections.Generic;
-using UnityEditor.SceneManagement;
 using UnityEngine;
 using UnityEngine;
+#if UNITY_EDITOR
+using UnityEditor.SceneManagement;
+#endif
 
 
 namespace Spine.Unity {
 namespace Spine.Unity {
 	/// <summary>Base class of animated Spine skeleton components. This component manages and renders a skeleton.</summary>
 	/// <summary>Base class of animated Spine skeleton components. This component manages and renders a skeleton.</summary>