Receive C# Events

Forums 💬 NodeCanvas 🗨️ General Discussion Receive C# Events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14275
    edwon
    Participant

      Can the Node Canvas behavior tree can recieve normal C# events from scripts that are normal monobehaviours? In other words I want to be able to listen to events from outside of the behaviour tree world, from anywhere in the game.

      #14277
      Gavalakis
      Keymaster

        Hello,

        There is a ‘Check CSharp Event’ condition task included that can subscribe to any System.Action event on a MonoBehaviour, or any static System.Action event.

        Let me know if that works for you.
        Thanks

        #14276
        Gavalakis
        Keymaster

          I forgot to mention that the same works for System.Action events with one argument of any type:

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