Monday, October 24, 2022
HomeGame Developmentunity - RuntimeNavMeshBuilder: Supply mesh doesn't enable learn entry

unity – RuntimeNavMeshBuilder: Supply mesh doesn’t enable learn entry


This error message is telling you precisely what’s unsuitable: the mannequin you are attempting to construct a navmesh for has not been marked as readable, so in a constructed sport the CPU won’t be able to learn its geometry info to construct that navmesh.

So: choose the fashions you wish to spawn dynamically this manner, and tick the “Learn/Write Enabled” field of their import settings:

Model import settings inspector - Model tab

That is lined within the documentation:

Learn/Write Enabled If you allow this selection, Unity uploads the Mesh knowledge to GPU-addressable reminiscence, but in addition retains it in CPU-addressable reminiscence. Because of this Unity can entry the Mesh knowledge at run time, and you may entry it out of your scripts. For instance, you may wish to do that in case you’re producing a Mesh procedurally, or if you wish to copy some knowledge from a Mesh.

When this selection is disabled, Unity uploads the Mesh knowledge to GPU-addressable reminiscence, after which removes it from CPU-addressable reminiscence.

By default, this selection is disabled. Usually, to save lots of runtime reminiscence utilization, go away this selection disabled. For info on when to allow Learn/Write Enabled, see Mesh.isReadable.

That final hyperlink there says:

You must solely allow it underneath the next circumstances:

  • If you use the Mesh to bake a NavMesh utilizing the NavMesh constructing parts at run time.

Simply typing “unity mesh learn entry” right into a search engine turns up a hyperlink to this documentation as one of many prime outcomes, in addition to a number of previous troubleshooting threads explaining resolve your error. So please get within the behavior of wanting on the key phrases in your error message and trying to find them, slightly than leaping to the conclusion that the error is simply “bizarre” and posting a brand new query about it. You may discover your solutions sooner by doing this primary degree of analysis first.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments