SebLague / Pathfinding

MIT License
668 stars 251 forks source link

UNWALKABLES IN ANOTHER SCENE #16

Open Aloisiopn opened 1 year ago

Aloisiopn commented 1 year ago

Hello Sebastian and everyone!

In Ep05, everything is working correctly.

CreateGrid() and Gizmos.Draw() recognize the objects on the Unwalkable layer even in different scenes. However, when the unit goes to follow the path on Play, it is ignoring objects on the Unwalkable Layer that are in another scene.

Can someone help me?

Thanks in advance!


UPDATE:

Apparently, the order and place of CreateGrid() and Gizmos.Draw() in Grid.cs, and also RequestPath() in PathRequestManager.cs, can cause this problem.

Still looking for the solution!