[NC2] Can't Prefab Local Graphs

Forums 💬 NodeCanvas ⚙️ Support [NC2] Can't Prefab Local Graphs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19282
    matt-newcombe
    Participant

      Hi,

      So in 1.6 I have a game object which uses a local graph (main reason being it’s tied to the components on the children of this object, so needs the scene references). This game object was instantiated N times in my scene, so I saved it all out as a prefab and this worked well.

      In 2.0 I can’t prefab a local graph, and an asset graph can’t have references to the game objects child hierarchy. This is problematic for me as it breaks the functionality I had previously. Is there a way to solve this in 2.0?

      Thanks in advance

      #19286
      matt-newcombe
      Participant

        Experimenting a little further I see now that it’s a literal scene reference, so even having a local graph and then copying that object means the new graph still references the previous objects children components, again this is non ideal for hierarchical control within a gameobject.

        #19285
        matt-newcombe
        Participant

          I’m currently getting around this now using blackboard variables to hold the references to the various other components I need within the same game object or scene, as this works with assets, I guess this is the right approach?

          #19284
          Gavalakis
          Keymaster

            Hello Matt,

            This is a known issue which I am fixing and pushing a new upate ASAP.
            The best aproack for now would indeed be using blackboard variables for prefab hierachy references yes 🙂

            #19283
            matt-newcombe
            Participant

              Ace, looking forward to the fix

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