A* Pathfinding Project  4.2.6
The A* Pathfinding Project for Unity 3D
AIDestinationSetter Class Reference

Sets the destination of an AI to the position of a specified object. More...

Detailed Description

Sets the destination of an AI to the position of a specified object.

This component should be attached to a GameObject together with a movement script such as AIPath, RichAI or AILerp. This component will then make the AI move towards the target set on this component.

See also
Pathfinding.IAstarAI.destination

Public Attributes

Transform target
 The object that the AI should move to. More...
 

Private Member Functions

void OnDisable ()
 
void OnEnable ()
 
void Update ()
 Updates the AI's destination every frame. More...
 

Private Attributes

IAstarAI ai
 

Additional Inherited Members

- 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...
 

Member Function Documentation

◆ OnDisable()

void OnDisable ( )
private

◆ OnEnable()

void OnEnable ( )
private

◆ Update()

void Update ( )
private

Updates the AI's destination every frame.

Member Data Documentation

◆ ai

IAstarAI ai
private

◆ target

Transform target

The object that the AI should move to.


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