I’ve just started myself off with Unity and needed some pathfinding for my little big project.
What I’m trying to do is use 2 grid graphs, both the same size, position etc identical other than using different masking layers.
One is for Structures (Walls and Floors) and the other for Objects (Machinery and Doors etc) which I’m also using for constructable doors which can be locked and well… behave like you’d expect from a door. Box collider on/off when opened and closed.
I have a seeker set to path to another room accessible through a locked door or an open hallway. It has both graphs set to use but my problem is that it always attempts to go through the locked door or when the graphs are the other way around it just goes through the walls. Ideally I want it to only attempt to go through the door if it has the correct key to unlock it and if not, try an alternate route.
Is there a way to set a graph grid to use multiple layer masks? I’m probably just being stubborn or stupid and should use another method…