Enum become integer in the inspector


I am using Unity 3.5.7 and I have such a class:

public class EffectNode
    public EffecNodeType m_nodeType;
    public List<EffectNode> m_subNodes;

This class has an enum field ‘m_nodeType’. When I added it to a MonoBehaviour then in the inspector I would see such result.

As you could see the enum of the root level was OK but it become an integer in the element in the sub node list.

Does anyone know how to make the enum work properly in an element in an array as well the root node?

enum is actually an integer, you just use a word in code to identify it to use it more easily,