jinyuliao / GenericGraph

Generic graph data structure plugin for ue4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i track node enter event?

navys04 opened this issue · comments

How can i track node enter event?

I asking this, because you don't have documentation, or something like this, and its hard to find this in source files

What I recommend is to create a UTraversableGenericGraph decorator which wraps your UGenericGraph. The traversable decorator will keep track of which nodes or edges have been "entered" based off the state of your traversal, and I added some DYNAMIC_DELEGATEs which can bound to in BP's or C++. When you've entered the node in your Traversal decorator, simply call those delegates. Your traverser can also be serializable, which lets you avoid having to worry about any modifications you make to the UGenericGraph.