Description
If a mesh with the nav-mesh component has multiple material this will make the mesh to load as two meshes in Hubs, one per material, and in hubs only the first found mesh with a nav-mesh component will be used. This will be unexpected for the user.
To Reproduce
Steps to reproduce the behavior:
Add a mesh
Add two materials assigned to different meshes
Add a nav-mesh component to the mesh
Export the glb
Load in Hubs and see how only part of the original nav mesh is used.
Expected behavior
That's actually the expected behavior as Hubs only supports one nav mesh but we should warn he user
Additional context
We should add a warning in the component's panel to flag that the nav mesh won't export correctly due to having multiple materials assigned.
Description If a mesh with the
nav-mesh
component has multiple material this will make the mesh to load as two meshes in Hubs, one per material, and in hubs only the first found mesh with anav-mesh
component will be used. This will be unexpected for the user.To Reproduce Steps to reproduce the behavior:
nav-mesh
component to the meshExpected behavior That's actually the expected behavior as Hubs only supports one nav mesh but we should warn he user
Additional context We should add a warning in the component's panel to flag that the nav mesh won't export correctly due to having multiple materials assigned.