Does not show result mesh correctly in prefab mode.
Hello My stages are saved in prefabs. I could bake the mesh correctly in prefab mode but it won't show the result unless I am viewing the mesh from a normal scene with the prefab. This issue make it a little hard to evaluate mesh result right after baking. It would be very appreciated if this can be improved.
Thanks for the excellent work.
Hello @fantasyz
I confirm that it is a bug. Do you have any hints or clues how to fix it? I'm not very familiar with editor API.
@h8man I am not sure how the current result is rendered. However, the usual difference between Prefab Mode and normal scene editing is that it run within an isolated scene. If you code need to get the instance of the NavMeshSurface2d GameObject in perfab mode, it probably need to find it with PrefabStage, or otherwise you maybe getting an instance from the normal scene behind the one inside the prefab editing scene.
Please try this package https://github.com/Unity-Technologies/NavMeshComponents - if bug is not reproduced, I can track down diff and merge with it.