Click or drag to resize

NavigationNavmeshAdd Method

Adds a NavigationMesh. Returns an ID for use with NavmeshRemove(Int32) or NavmeshSetTransform(Int32, Transform). If given, a Transform2D is applied to the polygon. The optional owner is used as return value for GetClosestPointOwner(Vector3).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int NavmeshAdd(
	NavigationMesh mesh,
	Transform xform,
	Object owner = null
)

Parameters

mesh
Type: GodotNavigationMesh

[Missing <param name="mesh"/> documentation for "M:Godot.Navigation.NavmeshAdd(Godot.NavigationMesh,Godot.Transform,Godot.Object)"]

xform
Type: GodotTransform

[Missing <param name="xform"/> documentation for "M:Godot.Navigation.NavmeshAdd(Godot.NavigationMesh,Godot.Transform,Godot.Object)"]

owner (Optional)
Type: GodotObject

[Missing <param name="owner"/> documentation for "M:Godot.Navigation.NavmeshAdd(Godot.NavigationMesh,Godot.Transform,Godot.Object)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.Navigation.NavmeshAdd(Godot.NavigationMesh,Godot.Transform,Godot.Object)"]

See Also