Version: 2020.2
언어: 한국어
public bool FindClosestEdge (out AI.NavMeshHit hit);

파라미터

hit Holds the properties of the resulting location.

반환

bool True if a nearest edge is found.

설명

Locate the closest NavMesh edge.

The returned NavMeshHit object contains the position and details of the nearest point on the nearest edge of the Navmesh. Since an edge typically corresponds to a wall or other large object, this could be used to make a character take cover as close to the wall as possible.

no example available in C#