Hello, I cannot for the life of me figure out why the Navmesh Tree Hole in the 2D Demo will not work. I create it exactly as seen on the video, when i attempt to play the scene, the Tree Hole doesn't seem to exist, also when using the default sorting map, the tree still covers the Player regardless of layer it seems. Please help, this is really frustrating.
Comments
Without seeing screenshots of your scene, I can only give a list of things to check for.
If you still have issues, please post some screenshots of your scene, and the relvenat object inspectors, and we can give more specific advice.
I can't see the PolygonCollider of your "TreeHole" object - is it surrounding the base of the tree, and entirely within the boundary of the main NavMesh?
The Inspector and Scene Manager look fine, so it could well be related to the position issue. Could you elaborate on that? If they don't appear in the scene window, where are they going? Are their positions way off-screen somewhere? That sounds like a Unity issue, as that part of the tutorial just uses Unity's interface.
About sharing images - see the forum rules. Images can't be uploaded directly onto the forum, but can be shared on image-sharing sites such as imgur.com and then linked to from here.
Be aware that the hole only joins the NavMesh at runtime - you should find that when selecting the NavMesh in the Scene window during gameplay, you can see the hole incorporated into it.
If you enable "Gizmos" in the Game window at runtime, you should also be able to see both the hole and the player's path as a series of white dots connected by blue lines. They definitely ignore the hole and go straight through it?
As all looks fine, I'm not sure what else to suggest. You're welcome to PM me a .unitypackage file of your "My 2D game" folder for me to take a look. Including the "AdventureCreator" folder won't be nececssary.