How to pass reference value?

Forums 💬 FlowCanvas ⚙️ Support How to pass reference value?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12141
    cheapmiao
    Participant

      I have code like this in a class

      When I want to bind Action in Custom Event Node

       

      My Event Node havent been tested yet, but my reference function error like the picture

      So what is yhe way to  pass reference value?

       

      #12143
      cheapmiao
      Participant

        Although I can code like this

         

        But it is less generic

        #12142
        Gavalakis
        Keymaster

          Hello,

          If you make your public Action an event like so: public event Action OnMoveAction;, you will be able to subscribe to that event with the existing nodes like the “C# Event Callback”. Do you intentionally don’t want to make it an “event”?

          Let me know.
          Thank you.

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