Custom Delegate += property not showing up.

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

  • This topic has 0 replies, 2 voices, and was last updated 10 months ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11924
    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.

      #11925
      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.

        [attachment file=”dragevent.png”]

        Let me know if that helps.

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