A* Pathfinding Project

Reloading scene sometimes messes up the Obstacle Layer


#1

Hi! So I’m really stumped by this bug I’ve encountered.

The problem is that if I reload my scene it will sometime mess up the collision testing. All of a sudden it will include objects that are not marked in the obstacle layer as obstacles. I have to reenter play mode for it to be fixed. Anyone else encountered this?


#2

Okay, figured out the issue. The problem was that I had a children trigger collider object under the main object with “obstacle” layer set to it… Sorry!