2

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?

Serlite
  • 12,130
  • 5
  • 38
  • 49
frankish
  • 6,738
  • 9
  • 49
  • 100
  • Is the ground set to Static/Static for navigation? (Check the dropdown at the top of the properties panel.) – Serlite May 12 '16 at 15:14
  • Can you post this as an anwer? It solved my problem. The parent was checked as static/static for navigation but it seems like somehow they did not mark it as static for the ground, so I marked it specifically which solved the problem. – frankish May 13 '16 at 08:35
  • Sure thing! Glad I could help out, expanded the comment to a full answer. – Serlite May 13 '16 at 14:10
  • I encountered the same problem and this answer helped me. – MZD May 18 '16 at 13:27

1 Answers1

4

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.

Serlite
  • 12,130
  • 5
  • 38
  • 49