Sending events from script to Node Canvas – Totally confused

Forums 💬 NodeCanvas ⚙️ Support Sending events from script to Node Canvas – Totally confused

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18776
    cbrandick
    Participant

      Hey Gavalakis,

      I hope you are doing well. I am having a hard time figuring out how to setup an event in one of my scripts that NodeCanvas can see and subscribe to. I have done it a few ways…

      Neither of these give me an option to grab an event in the “Check C# Event” action…
      Any thoughts?

      Thanks in advance,
      Charlie

      #18779
      Gavalakis
      Keymaster

        Hey,

        The System.Action is the correct one and should work, but please make sure to use the generic version of “Check C# Event” with the correct type. “Check C# Event (float)” 🙂

        Let me know if that works for you.
        Cheers!

        #18778
        cem
        Participant

          Hi,

          Sorry to re-open old thread; but did you get this solved ?

          I have the following code:

          But i don’t see anything in the dropdown …

          Sorry i’m quite new to this, happy if you can help me out.

          Thanks

          #18777
          Gavalakis
          Keymaster

            Hello,

            Please add the the “EventTest” type in the preferred types list ( Window/NodeCanvas/Preferred Types Editor ) and it’s event will show up to be selected in the menu shown in the image you have attached 🙂
            As you will notice, the types shown in the list right now, are those that exist in the Preferred Types list.

            Please let me know if you need any further help with this one or anything else.

            Thanks

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