I keep getting this error:
NullReferenceException: Object reference not set to an instance of an object ProceduralGridMover.Update () (at Assets/Scripts/ProceduralGridMover.cs:31)
Sometimes when I run the game and it compiles while I am playing it will reset the A* Component so that it is at the state where I have to choose which type I want.
Hi
The system does not support restoring from a compilation when running. There is so much data that would need to be restored, and unity simply cannot serialize it all. That’s why it loses the reference.
This is pretty common since Unity serialization covers far from all cases.
Ohh, okay. Is that the cause of the error too?
The error comes from a reference which has been lost due to the serialization/deserialization step involved when compiling code during runtime.
So yes, it is the cause of the error.