LayerGridGraph and ProceduralGridMover

I’m trying to modify the ProceduralGridMover script to work with LayerGridGraph. When the UpdateGraphCoroutine is called it errors saying the graph.nodes is not set to an object reference. Is there something i can call to make sure the graph is up-to-date before trying to rebuild it?

1 Like

Hi

Are you sure that graph.nodes is null and not that an element is null? In the layer grid graph not all elements in the nodes array are filled (because not all layers have all nodes in them), so the script needs to properly ignore the nodes that are null.

1 Like

Hi Steamroller! If you get this working, I would be very interested in that code.