MessageEventNode removed

FlowCanvas Forums Support MessageEventNode removed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2491
    michal trneny
    Participant

    Hello,

    many of our flowcanvas scripts used MessageEventNode with overriden GetTargetMessageEvents() to react on broadcasted events from monobehaviours. Why was this class removed in 3.0.0 and what’s the alternative?

    Thanks
    Michal

    #2492
    Gavalakis
    Keymaster

    Hello,

    The events backend changed considerably for performance reasons as well as to be strongly typed. The replacement for ‘MessageEventNode’ is now the ‘RouterEventNode’ and instead of using ‘GetTargetMessageEvents’, we now override ‘Subscribe’ and ‘Unsubscribe’ methods. Within those methods we use the ‘router’ parameter they have to subscribe and unsubscribe from events. Please take a look at the ‘TriggerEvents.cs’ node to cleary see how this is used for an example.

    Let me know if you have any more questions. Thanks 🙂

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

    #2493
    michal trneny
    Participant

    I thought it would be from performance reasons. Thank you for the explanation!

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