Reply To: Custom attribute drawers

Forums 💬 FlowCanvas ⚙️ Support Custom attribute drawers Reply To: Custom attribute drawers

#12800
Gavalakis
Keymaster

    Hello,

    When you want to create a drawer for an object (class), you need to create an ‘ObjectDrawer’ (derive from ObjectDrawer(T) ). This way, the object will be drawn with this drawer wherver it is encounter, including the popup editor when the Blackboard variable button has been pressed, as well as within the inspector when used as a parameter for example. Here is a simple example:

    Unfortunately though, the button itself shown in the the blackboard variables list can not be changed, but the inspector within that popup editor when that button is clicked can.

    Let me know if that works for you.
    Thanks!