frankish
frankish

Reputation: 6826

NavMesh baking finished very quickly and does not include some objects

I am doing one of Unity's official tutorials: Survival Shooter.

Unity version: 5.3.4f1 Device: Macbook, OSX 10.11

http://unity3d.com/learn/tutorials/projects/survival-shooter/environment?playlist=17144

The problem: Baking process completes almost instantly and the floor is not highlighted by a blue mesh (where highlight should mean that navmesh is calculated for there).

Here is the screenshot of it: enter image description here

Then, I checked the completed scene (which was already created by Unity Team), it showed the floor fully highlighted. I just hit the bake again without touching anything and the same problem happened. So, there must be something else as I tried the original scene file without changing anything.

What am I missing here? Is there a Unity editor setting or something like that which can break the baking process?

Upvotes: 2

Views: 6045

Answers (1)

Serlite
Serlite

Reputation: 12258

When baking a NavMesh for your game, a crucial thing to verify is that every object which should affect navigation is marked as a Static GameObject, or at least Static for Navigation. This setting may be found in a checkbox/dropdown at the top of the properties Inspector:

enter image description here

It sounds like the floor object in your scene hasn't been marked as Static, meaning it won't factor into the NavMesh baking.

Upvotes: 4

Related Questions