Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MoveLocationsInSameAreas(NativeSlice<NavMeshLocation>, NativeSlice<Vector3>, int)

Translates a series of NavMesh locations to other positions without losing contact with the surface, given one common area filter for all of them.
Read time 1 minuteLast updated 20 days ago

Definition

Warning
Deprecated. The experimental NavMeshQuery struct has been deprecated. Use NavWorld instead.
public void MoveLocationsInSameAreas(NativeSlice<NavMeshLocation> locations, NativeSlice<Vector3> targets, int areaMask = -1)

Parameters

Array of positions to be moved across the NavMesh surface. At the end of the method call this array contains the resulting locations.

World positions you want the agent to reach when moving to each of the locations.

areaMask

Filters for the areas which can be traversed during the movement to each of the locations.

Remarks

Does the exact same thing as NavMeshQuery.MoveLocations only it applies the same area filter to all the movements.