[Major Bug] FSMOwner loses bound graph if gameobject is inactive

NodeCanvas Forums Support [Major Bug] FSMOwner loses bound graph if gameobject is inactive

Tagged: ,

  • This topic has 2 replies, 2 voices, and was last updated 5 years ago by erik.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14825
    erik
    Participant

    Hey,

    Major bug.

    Example scene attached.

    When you have an FSMOwner with a bound graph on a GameObject that is inactive. The FSM will lose the reference to the bound graph when entering play mode.

    NodeCanvas 3.03

     

     

    Attachments:
    You must be logged in to view attached files.
    #14833
    Gavalakis
    Keymaster

    Hello,

    As soon as you enable the gameobject (and thus the “Awake” of the FSMOwner component is executed), the instance of the graph will be created and everything will work normally. So nothing is lost really. It is just that the Awake functions needs to be executed for initialization.

    Please let me know if that clarifies.
    Thanks.

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

    #14835
    erik
    Participant

    Ok, thats makes sense.

    I was checking if a FSMOwner was actually used and if I could discard it by looking if it had a graph set, before it could enable itself

    Instead I’m now looking if it has a boundgraph and if the serializedgraph is not empty.

     

    Thanks. 🙂

     

    ps: keep up the good work. NodeCanvas is my favourite FSM,BT plugin.

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