Receive C# Events

NodeCanvas Forums General Discussion Receive C# Events

Tagged: 

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

    #10907
    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

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

    #10908
    Gavalakis
    Keymaster

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

    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.