Can we carete xxx.asset (FSM) file in scripting level?

NodeCanvas Forums Support Can we carete xxx.asset (FSM) file in scripting level?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12011
    mchoi
    Participant

    Hi all,

    We consider to deep copy FSM and BT file including nested FSM and BT. Any idea?

    Because of we actually want to deep copy of FSM file including Nested FSM files. so I though that there are 2 option I do,
    1. Copy FSM and BT files and attach proper Nested xxx.asset (FSM file).
    2. Deep copy of FSM file including nested FSM or BT files.

    Thanks.

    #12031
    Gavalakis
    Keymaster

    Hello,

    Do you mean creating a duplicate of a root asset graph along with duplicates of all sub-graphs instead of references to them?
    If so, here is a NON tested way to do so recursively that should work. Commented code following:

    Let me know if that works for you, or if you need any further help with this, and if that was indeed what you were after.
    Thanks.

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

    #12047
    mchoi
    Participant

    Yeah, I mean that deep copy as you post.
    I wish that feature will be in next release of NodeCanvas.

    Thanks.

    #12053
    Gavalakis
    Keymaster

    Hello,
    This has now been added in the “gear” context menu of a graph asset. If you want, you can add this now manually as well, by opening Editor_Graph.cs file and adding this code at the end:

    Cheers!

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

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