SendGlobalEvent

NodeCanvas Forums Support SendGlobalEvent

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10259

    Hi there,

    Firstly, I’m having such a good experience with NodeCanvas, it’s really helping with my game development.

    I’ve just run into one issue, that I hope you can point me in the right direction on. Not sure if it’s a bug or a something I’m doing wrong.
    For the life of me I can’t seem to get GlobalSendEvent to work as-is.

    I’ve set up a simple scene with an actor and a UI component. Each are FSMOwners. On a button click my UI component executes “FSM.SendGlobalEvent(“Equip1hRanged”);”.

    Nothing happens.

    I had a peek in Graph.cs and see that SendGlobalEvent finds all objects of type Graph in the scene.

    First thought was to double check that the graphs exist. To my surprise on running the project they disappear! No idea what’s causing that. But it effectively means SendGlobalEvent doesn’t pick up the graph I need to send a message to.

    I’ve managed to tweak the code for now to instead pick up my FSMOwners and send a message from there. Not ideal in the long run, but will work for what I need it for just now.

    Anyway I’m not sure if the problem lies in NodeCanvas or if something else in Unity is causing the issue. Just wondered if you had come across this and if so is there something I can do to ensure the correct behaviour is actioned?

    I’m running unity 4.5.2f1 pro and NodeCanvas 1.5.2.

    Kind Regards,
    Joe

    #10261
    Gavalakis
    Keymaster

    Hello!

    You are very correct about this issue. It’s actually a bug 🙂
    I’ve fixed that now so the next version will be ok.

    Thanks for sniffing this out 🙂

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

    #10260

    Awesome!

    Thanks for looking into it! 🙂

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