Support Forum

How to remove node from PointGraph

Good day, is it possible to delete a node? Created in Realtime using :

PointGraph.AddNode <T> (Tobj, int3 position)

Hello! I found such an insidious way to delete a lot of points, maybe I will find an easier way, how to remove a certain group of points by certain filters, etc.

            Astar.AddWorkItem(() =>
            {
                var graph = Astar.data.pointGraph;
                if(destroyPrevious && graph is IGraphInternals graphInternal)
                {
                    graphInternal.DestroyAllNodes();
                }
            }