I used this http://wiki.unity3d.com/index.php/ExposePropertiesInInspector_Generic
for a bool and it worked fine, but when I used it on an enum it gave weird result.
Code:
public enum TileDirection
{
Right,
Left,
Top,
Bottom
}
[ExposeProperty]
public TileDirection Direction
{
set
{
direction = value;
Debug.Log(direction);
}
get { return direction; }
}
[HideInInspector, SerializeField]
private TileDirection direction;
when I changed from Bottom to Right I got this:
Am I doing something wrong?