[NC2] Can't Prefab Local Graphs

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

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

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

    #9814
    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?

    #9813
    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 🙂

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

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