A* Pathfinding Project  4.2.4
The A* Pathfinding Project for Unity 3D
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
Menubar -> Component -> Pathfinding -> Modifiers

Public Member Functions

abstract void Apply (Path path)
 Called for each path that the Seeker calculates after the calculation has finished. More...
 
virtual void PreProcess (Path path)
 

Public Attributes

Seeker seeker
 

Protected Member Functions

virtual void OnDisable ()
 
virtual void OnEnable ()
 Alerts the Seeker that this modifier exists. More...
 
- Protected Member Functions inherited from VersionedMonoBehaviour
virtual void Awake ()
 
virtual int OnUpgradeSerializedData (int version, bool unityThread)
 Handle serialization backwards compatibility. More...
 
virtual void Reset ()
 Handle serialization backwards compatibility. More...
 

Properties

abstract int Order [get]
 Modifiers will be executed from lower order to higher order. More...
 
- Properties inherited from IPathModifier
int Order [get]
 

Member Function Documentation

◆ Apply()

abstract void Apply ( Path  path)
pure virtual

Called for each path that the Seeker calculates after the calculation has finished.

Implements IPathModifier.

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

◆ OnDisable()

virtual void OnDisable ( )
protectedvirtual

◆ OnEnable()

virtual void OnEnable ( )
protectedvirtual

Alerts the Seeker that this modifier exists.

◆ PreProcess()

virtual void PreProcess ( Path  path)
virtual

Implements IPathModifier.

Member Data Documentation

◆ seeker

Seeker seeker

Property Documentation

◆ Order

abstract int Order
get

Modifiers will be executed from lower order to higher order.

This value is assumed to stay constant.


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