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.
20 lines
553 B
20 lines
553 B
using System;
|
|
using TNode.Attribute;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace TNode.Editor.Inspector.InspectorImplementation{
|
|
[NodeComponent]
|
|
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());
|
|
};
|
|
}
|
|
}
|
|
} |