diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs index db36aaf91..1824fff40 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs @@ -28,8 +28,10 @@ *****************************************************************************/ using System.Collections.Generic; -using UnityEditor.Animations; using UnityEngine; +#if UNITY_EDITOR +using UnityEditor.Animations; +#endif namespace Spine.Unity { [RequireComponent(typeof(Animator))] diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs index 0c4d3c282..87e3c9c8c 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -51,8 +51,10 @@ #define SPINE_OPTIONAL_MATERIALOVERRIDE using System.Collections.Generic; -using UnityEditor.SceneManagement; using UnityEngine; +#if UNITY_EDITOR +using UnityEditor.SceneManagement; +#endif namespace Spine.Unity { /// Base class of animated Spine skeleton components. This component manages and renders a skeleton.