Unity graph tool solution based on different implementation now focused on Unity.Experimental.Graphview
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
568 B

using System;
using TNode.Attribute;
using UnityEngine;
using UnityEngine.UIElements;
namespace TNode.Editor.Inspector.InspectorImplementation{
[NodeComponent]
[Obsolete]
public class EnumFieldItem:InspectorItem<Enum>{
public EnumFieldItem() : base(){
var field = new EnumField();
Debug.Log("An Enum Field is created");
CreateBindable(field);
OnDataChanged += () => {
field.Init(Value);
Debug.Log(Value.GetType());
};
}
}
}