Not possible to visualise Nav Mesh Data in Prefab Mode

I am confused why it is possible to [Bake] Nav Mesh Data into a Prefab in Prefab Mode but it is NOT possible to actually visualise that data in the same Scene window mode. There is even a warning message so its somewhat ‘by design’?

Currently to be able to visualise the bake result you have to leave Prefab Mode, drag the prefab into a scene, inspect, and then return to Prefab Mode to make adjustments/rebake. Baking it whilst in the Scene will attached the baked data to the scene and not the Prefab.

Quick draw-over below:

Hey Andy!
Yeah, we noticed this issue recently and have logged it as an issue internally. Feel free to file a bug for the issue so that you will be kept in the loop of our progress.

1 Like

Once you’ve baked a new NavMesh by using the prefab instance in the scene you can right-click on the “NavMesh Data” field and select “Apply to Prefab”. That will move the NavMesh from the scene to the prefab. Alternatively you can select “Revert” if you’ve changed your mind. You can undo these operations if necessary.

If the NavMeshSurface component is added to the root of the prefab hierarchy then you might find it useful to set the Collect Sources field to “Current Object Hierarchy” (or a carefully chosen “Volume”) in the prefab instance in order to isolate the new NavMesh to only the content of the prefab.

Thanks, will try and log a descriptive bug when I can!

Oh, that does help! Although we author our prefabs entirely in Prefab Mode so this would change our workflow a bit… Thanks for the advice!!

1 Like