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

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

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

       

       

      #16429
      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.

        #16428
        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.