A* Pathfinding Project  4.1.12
The A* Pathfinding Project for Unity 3D
RelevantGraphSurface Class Reference

Pruning of recast navmesh regions. More...

Detailed Description

Pruning of recast navmesh regions.

A RelevantGraphSurface component placed in the scene specifies that the navmesh region it is inside should be included in the navmesh.

See also
Pathfinding.RecastGraph.relevantGraphSurfaceMode

Public Member Functions

void OnDrawGizmos ()
 
void OnDrawGizmosSelected ()
 
void UpdatePosition ()
 

Static Public Member Functions

static void FindAllGraphSurfaces ()
 
static void UpdateAllPositions ()
 Updates the positions of all relevant graph surface components. More...
 

Public Attributes

float maxRange = 1
 

Properties

RelevantGraphSurface Next [get]
 
Vector3 Position [get]
 
RelevantGraphSurface Prev [get]
 
static RelevantGraphSurface Root [get]
 

Private Member Functions

void OnDisable ()
 
void OnEnable ()
 

Private Attributes

RelevantGraphSurface next
 
Vector3 position
 
RelevantGraphSurface prev
 

Static Private Attributes

static RelevantGraphSurface root
 

Additional Inherited Members

- Protected Member Functions inherited from VersionedMonoBehaviour
virtual void Awake ()
 
virtual int OnUpgradeSerializedData (int version, bool unityThread)
 Handle serialization backwards compatibility. More...
 

Member Function Documentation

◆ FindAllGraphSurfaces()

static void FindAllGraphSurfaces ( )
static

◆ OnDisable()

void OnDisable ( )
private

◆ OnDrawGizmos()

void OnDrawGizmos ( )

◆ OnDrawGizmosSelected()

void OnDrawGizmosSelected ( )

◆ OnEnable()

void OnEnable ( )
private

◆ UpdateAllPositions()

static void UpdateAllPositions ( )
static

Updates the positions of all relevant graph surface components.

Required to be able to use the position property reliably.

◆ UpdatePosition()

void UpdatePosition ( )

Member Data Documentation

◆ maxRange

float maxRange = 1

◆ next

RelevantGraphSurface next
private

◆ position

Vector3 position
private

◆ prev

RelevantGraphSurface prev
private

◆ root

RelevantGraphSurface root
staticprivate

Property Documentation

◆ Next

◆ Position

Vector3 Position
get

◆ Prev

◆ Root

RelevantGraphSurface Root
staticget

The documentation for this class was generated from the following file: