how to assign subtree variables?

NodeCanvas Forums Support how to assign subtree variables?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18679
    nicolasoto
    Participant

    Hi, I need some help with my current project:
    I want to use only one FSM asset to control different NPCs. I do not bind the graph because I want a change in the FSM asset can be assign to all NPC using that asset in the future, so I don’t need to fix every bound graph one by one when there are only universal changes requested.
    But now there is a problem. When I add a subtree variable on the graph blackboard and assign the subtree to a FSM state, I cannot assign subtree’s exposed variables because the assign field will not show up in editor mode. And when I add a subtree variable on the object blackboard, although the assign field shows up, whenever I assign one NPC’s subtree variable, the other NPC’s variable will be cleared out.

    #18735
    Gavalakis
    Keymaster

    Hello. Sorry for the late reply, I was away for a few days.
    I am not sure I understand the issue you are facing :/
    Exposed graph blackboard variables will either
    1) Show up in the inspector of the node that use that graph as a subgraph, or
    2) Show up in the inspector of the GraphOwner component if that graph is assigned directly to the GraphOwner (therefore not as a subgraph to another graph).

    Does it not work the way it is described here for you? -> https://nodecanvas.paradoxnotion.com/documentation/?section=mapping-sub-graph-variables

    Thanks.

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

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