How to pass reference value?

FlowCanvas Forums Support How to pass reference value?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3252
    CheapMeow
    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?

     

    Attachments:
    You must be logged in to view attached files.
    #3254
    CheapMeow
    Participant

    Although I can code like this

     

    But it is less generic

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

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

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