Scripting API

Scripting API

NavigationEditing

Class in Abyss.Navigation, from Abyss.Navigation.

Navigation in the editor: a NavMeshSurface3D baked by Bake on its menu in the Inspector, or with every other by Window ▸ Navigation ▸ Navigation, which lists them; its Agent Type chosen by name, as Project Settings ▸ Navigation names them; and its navmesh drawn in the Scene, see-through blue with its edges, while it is picked or the window is open.

public sealed class NavigationEditing : IPlugin

Remarks

A bake gathers the triangles of what the surface is baked from — the meshes of the entities it collects, as they are placed now, the colliders a physics package gives (IStaticGeometry3D), or both — on its layers and active, and has Recast make the navmesh of its agent type out of them. The navmesh is written to a file beside the scene, in a folder named as the scene is, under the surface's name: scenes/Level1/Ground.abynav, written again in its place as it is baked again, so it keeps its identity. The surface names it, which is the step of the undo; the file stays as it was written.

Clear has the surface name no bake. The file stays among the assets, and a bake after it writes it again.

Methods

Build

public void Build(Schedule schedule)

Parameters

  • schedule

Constants

public const string EditLink = "Edit Link"

What the Inspector's button on a link reads.

EditVolume

public const string EditVolume = "Edit Volume"

What the Inspector's button on a box reads.