Hello, I’m having troubles with null reference exception…
can i get some help?
Sure.
Two things can be null on this line;
-
gCostText
, or pathNode
Check that you assigned the TextMeshPro
text objects in the prefab, and make sure you called SetGridObject
when you instantiated the objects.
2 Likes