Issue with Check C Sharp Event

Forums 💬 NodeCanvas ⚙️ Support Issue with Check C Sharp Event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18054
    mathius777
    Participant

      Hello, I was looking at the tutorial at: https://nodecanvas.paradoxnotion.com/documentation/?section=the-script-control-tasks

      And noticed that in my latest version of NC, I do not have the option to select the script. I have a custom script on my game object, and when I add the “Check C Sharp Event” action to a node, the only thing that appears is a “Select Event” button. If I click this, every option is grayed out.

      My goal is to be able to call either an EventHandler(not sure if this is possible in NC right now) or an Action on my custom script. Am I doing something wrong? Thanks.

      #18055
      Gavalakis
      Keymaster

        Hello,

        The CheckCSharp Event condition, is able to only subscribe to events of System.Action type.
        Here is an example of an event that can be used from CheckCSharp Event condition.

        Can you please confirm that if you attach this script on the same gameobject as the GraphOwner is attached on, will allow you to select “Example/onSomethingHappened” after clicking the “Select Event” button?

        Let me know.
        Thanks.

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