Search Unity

Question CustomPropertyDrawer problem

Discussion in 'Visual Scripting' started by atmuc, Apr 7, 2023.

  1. atmuc

    atmuc

    Joined:
    Feb 28, 2011
    Posts:
    1,166
    I have a string input value. I want to select a value from a dropdown with dynamic data. I added a custom type and a CustomPropertyDrawer. I added both OnGUI and CreatePropertyGUI methods. I created a custom node. I added my custom node to a graph. On node there is no editor fields. OnGUI and CreatePropertyGUI functions are not called. I added a variable with my custom type. Blackboard inspector shows editor field generated by my CustomPropertyDrawer. It calls just OnGUI function.

    How can I show my CustomPropertyDrawer on node?

    How can I use CreatePropertyGUI with Visual Scripting?