Get all OffMeshLink objects

What I’m trying to do is to make an edit-mode script that gets all off-mesh links and makes some of them bi-directional(depends whether a jump is possible).

My (obvious) attempt was:

FindObjectsOfType<OffMeshLink>();

However, it returns only the links I have created manually.

My question is the following: how to access the off-mesh links generated by unity in the baked NavMesh?

Any help would be greatly appreciated.

Unfortunately it’s not possible to modify the auto-generated offmeshlinks :frowning:

1 Like

Even if the OP’s objective cannot be reached (making some of them bi-directional), is there a way to read the rest of the off-mesh links?

The auto-generated OffMeshLinks (jump/drop) are unfortunately not available for queries
We plan to replace this concept with a more flexible one - including a better workflow

Is there a solution to this now?
Why not add a single bool in there to make all auto generated offmesh links bidirectional? I’d prefer to deal with all bidirectional links than having to manually create them. My agents needs to be able to jump all over the map, can you imagine the pain of doing it all by hand?

Is the source out there? I’d try fixing it myself.

1 Like

Hi, for our project, we really need to at least read off-mesh links, simple list “start / end vector3” would be sufficient, is there a way to get them? If not, could you please send me a plugin that is able to export them? There is even an asset that is trying to mimick the built-in functionality, although not as good as the hidden black box within Unity: NavMesh Links Generator for NavMeshComponents

1 Like

Is there a way to get(read) Start and End positions of Auto Generated Off Mesh Links now?

How is the plan going?

3 Likes

Hey guys any progress on this?? This seems so stupid to even be a real limitation…

2 Likes