Custom Delegate += property not showing up.

FlowCanvas Forums Support Custom Delegate += property not showing up.

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3639
    neroid
    Participant

    I have an asset im trying to hook up into flow canvas and it has an event delegate im trying to listen to, its += property is just not showing up (nor -= and the likes).
    As of now my solution is to just make a custom wrapper script that invokes a custom event but this is convoluted and i may need more events or delegates down the road.

    This delegates definition isnt something special and its definition is merely

    When i get a reference to this delegate i dont find anything useful i can hook up to in the graph view thats why im making this post.

    #3643
    Gavalakis
    Keymaster

    Hello and sorry for the late reply.

    You need to get a reference to the object that has the actual event declared, not the event delegate.
    For example, I have declared a delegate similar to yours somewhere, and then made a MyClass type (that happens to be MonoBehaviour), within which I have delcared an event that is of that same delegate type.

    If I drag a MyClass instance in FlowCanvas editor, the event is shown under “Event” with various options on how to use it. The simplest way to use it is “AutoSubscribe”, but you can also use += / -=, or Get Reference of course.

    dragevent

    Let me know if that helps.

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.