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

This commit is contained in:
Harald Csaszar 2023-01-11 11:48:10 +01:00
parent 01b8c06800
commit 07b54ee18e
2 changed files with 6 additions and 2 deletions

View File

@ -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))]

View File

@ -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>