示例#1
0
    //Using Odin Enum Drawer (Toggle) instead of Unity Dropdown
    //http://www.sirenix.net/odininspector/faq/48/can-i-write-my-own-custom-editor-code-using-odin
    //https://odininspector.com/tutorials/how-to-create-custom-drawers-using-odin/how-to-use-the-propertytree
    protected override void PropertyField()
    {
        myObjectTree.BeginDraw(true);
        var someProp1 = myObjectTree.GetPropertyAtPath("defaultStateType");

        someProp1.Draw();
        myObjectTree.EndDraw();
    }