[NodeCanvas] OnLoaded for initialization

Forums 💬 NodeCanvas 🗨️ General Discussion [NodeCanvas] OnLoaded for initialization

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13016
    leanon00
    Participant

      Hello! Maybe I am wrong but there is no function for initialization that is called once when the graph is loaded for “heavy” stuff..

      As OnInit() is called once first time the node is active this can produce the needed allocations or heavy stuff in the middle of the game which is not optimal.

      Graph.cs

      Task.cs

      Fsm.cs

      Usage.cs

      #13017
      Gavalakis
      Keymaster

        Hello!

        Indeed there is no call in Tasks for when the graph is initialized. I will add something for this in a future update though.
        Thank you for your suggestion 🙂

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