A* Pathfinding Project  3.6.2
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
MonoModifier Class Referenceabstract

Base class for path modifiers which can be attached to GameObjects. More...

Detailed Description

Base class for path modifiers which can be attached to GameObjects.

See Also
[AddComponentMenu("CONTEXT/Seeker/Something")] Modifier

Public Member Functions

abstract void Apply (Path p, ModifierData source)
 Main Post-Processing function.
 
virtual Vector3[] Apply (GraphNode[] path, Vector3 start, Vector3 end, int startIndex, int endIndex, NavGraph graph)
 
virtual Vector3[] Apply (Vector3[] path, Vector3 start, Vector3 end)
 
virtual void ApplyOriginal (Path p)
 
void Awake ()
 Alerts the Seeker that this modifier exists.
 
void OnDestroy ()
 
void OnDisable ()
 
void OnEnable ()
 
virtual void PreProcess (Path p)
 
- Public Member Functions inherited from IPathModifier
void Apply (Path p, ModifierData source)
 
void ApplyOriginal (Path p)
 
void PreProcess (Path p)
 

Public Attributes

int priority = 0
 Higher priority modifiers are executed first.
 
Seeker seeker
 

Properties

abstract ModifierData input [get]
 
abstract ModifierData output [get]
 
int Priority [get, set]
 
- Properties inherited from IPathModifier
ModifierData input [get]
 
ModifierData output [get]
 
int Priority [get, set]
 

Member Function Documentation

abstract void Apply ( Path  p,
ModifierData  source 
)
pure virtual

Main Post-Processing function.

Implemented in RadiusModifier, SimpleSmoothModifier, AlternativePath, RaycastModifier, AdvancedSmooth, and FunnelModifier.

virtual Vector3 [] Apply ( GraphNode[]  path,
Vector3  start,
Vector3  end,
int  startIndex,
int  endIndex,
NavGraph  graph 
)
virtual
virtual Vector3 [] Apply ( Vector3[]  path,
Vector3  start,
Vector3  end 
)
virtual
Deprecated:
This is for all other position only modifiers (mostly smoothers)
virtual void ApplyOriginal ( Path  p)
virtual
void Awake ( )

Alerts the Seeker that this modifier exists.

void OnDestroy ( )
void OnDisable ( )
void OnEnable ( )
virtual void PreProcess ( Path  p)
virtual

Member Data Documentation

int priority = 0

Higher priority modifiers are executed first.

Seeker seeker

Property Documentation

abstract ModifierData input
get
abstract ModifierData output
get
int Priority
getset

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