A* Pathfinding Project
4.3.5
The A* Pathfinding Project for Unity 3D
|
Sets the destination of an AI to the position of a specified object. More...
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.
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 | |
![]() | |
virtual void | Awake () |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. More... | |
virtual void | Reset () |
Handle serialization backwards compatibility. More... | |
![]() | |
int Util.IEntityIndex. | EntityIndex [get, set] |
Internal entity index used by #BurstBatchHelper. More... | |
![]() | |
int | EntityIndex [get, set] |
|
private |
|
private |
|
private |
Updates the AI's destination every frame.
|
private |
Transform target |
The object that the AI should move to.