Nested FlowScript question

NodeCanvas Forums General Discussion Nested FlowScript question

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10960
    chocolacode
    Participant

    Hi there,

    I have an FSM and a FlowScript already created in a GameObject, both of them I created as “Bound”.

    Now I am editing my FSM and want to create a nested FlowScript. A new State appears that says “Create New”.

    My problem is that I don’t want to create a new FlowScript. I want to be able to select my existing FlowScript. Is that possible? Can this feature be added?

    Thanks in advance

    #10963
    Gavalakis
    Keymaster

    Hello,

    In the Nested FlowScript inspector panel, you can assign any existing flowscript you want to (not always a new one), but the flowscript assigned there has to be an asset flowscript and not a bound flowscript of a FlowScriptController in the scene.

    Even though you can assign a bound flowscript of a controller in the scene, it is really not recommended for two important reasons to keep in mind:

    1. The controller’s gameobject will be instantiated.
    2. The variables used will be the ones of the graph the nested flowscript *node* is within (eg the FSM), not the ones of the FlowScriptController you are referencing the flowscript from.

    For the above two reasons, sub-systems are designed to work with asset graphs. Is there a reason why you don’t want to use an asset graph?

    Let me know if that works for you.
    Thanks!

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

    #10966
    chocolacode
    Participant

    Hi there,

    thanks for your detailed answer, I will start working more and more with Graph assets as you suggest,

    thanks!

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