Skip to content

Commit 663f468

Browse files
committed
feat: fix error in Unity 2021
1 parent 99048e6 commit 663f468

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Editor/Scripts/Node/AnimationClipPlayableNode.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
using System.Text;
2-
using UnityEditor.UIElements;
32
using UnityEngine.Animations;
43
using UnityEngine.Playables;
4+
#if UNITY_2021_1_OR_NEWER
5+
using UnityEngine.UIElements;
6+
#else
7+
using UnityEditor.UIElements;
8+
#endif
59

610
namespace GBG.PlayableGraphMonitor.Editor.Node
711
{
812
public class AnimationClipPlayableNode : PlayableNode
913
{
10-
private ProgressBar _progressBar;
14+
private readonly ProgressBar _progressBar;
1115

1216

1317
public AnimationClipPlayableNode(Playable playable) : base(playable)

0 commit comments

Comments
 (0)