Navigation2DNavpolyAdd Method |
Adds a NavigationPolygon. Returns an ID for use with NavpolyRemove(Int32) or NavpolySetTransform(Int32, Transform2D). If given, a Transform2D is applied to the polygon. The optional owner is used as return value for GetClosestPointOwner(Vector2).
Namespace: Godot
public int NavpolyAdd( NavigationPolygon mesh, Transform2D xform, Object owner = null )
[Missing <param name="mesh"/> documentation for "M:Godot.Navigation2D.NavpolyAdd(Godot.NavigationPolygon,Godot.Transform2D,Godot.Object)"]
[Missing <param name="xform"/> documentation for "M:Godot.Navigation2D.NavpolyAdd(Godot.NavigationPolygon,Godot.Transform2D,Godot.Object)"]
[Missing <param name="owner"/> documentation for "M:Godot.Navigation2D.NavpolyAdd(Godot.NavigationPolygon,Godot.Transform2D,Godot.Object)"]
[Missing <returns> documentation for "M:Godot.Navigation2D.NavpolyAdd(Godot.NavigationPolygon,Godot.Transform2D,Godot.Object)"]