Skip to content

[RegisterTo]

CoffeeVampir3 edited this page Mar 29, 2021 · 3 revisions

public class RegisterTo

RegisterTo informs the system what nodes are registered to which graph, and the path and name you should search for them by. For example:

    [RegisterTo(typeof(DialogueGraphBlueprint), "Nodes/Spice Nodes/Really Deeply Nested/Diag Node")]
    public class DialogueNode : RuntimeNode

This registers our DialogueNode to a DialogueGraphBlueprint and it'll be nested under the path "Nodes/Spice Nodes/Really Deeply Nested" finally it's name in that directory will be "Diag Node".

For Root Nodes

Root nodes should register to their graph controller with no path:

    [RegisterTo(typeof(DialogueGraphBlueprint))]
    public class DialogueRoot : RuntimeNode, RootNode