Class PolarGraph Extends NavGraph

Public

Public Methods

GetNodes (action)

[step7]

Public

Public Variables

center
Public
circles
Public
nodes
Public
scale
Public
steps
Public

Inherited Public Members

active

Reference to the AstarPath object in the scene.

Public
CountNodes ()

Number of nodes in the graph.

Public
drawGizmos

Enable to draw gizmos in the Unity scene view.

Public
GetNearest (position)

Returns the nearest node to a position.

Public
GetNearest (position, constraint)

Returns the nearest node to a position using the specified NNConstraint.

Public
GetNearest (position, constraint, hint)

Returns the nearest node to a position using the specified NNConstraint.

Public
GetNearestForce (position, constraint)

Returns the nearest node to a position using the specified constraint .

Public
GetNodes (action)

Calls a delegate with all nodes in the graph until the delegate returns false.

Public
graphIndex

Index of the graph, used for identification purposes.

Public
guid

Used as an ID of the graph, considered to be unique.

Public
infoScreenOpen

Used in the editor to check if the info screen is open.

Public
initialPenalty

Default penalty to apply to all nodes.

Public
name

Name of the graph.

Public
OnDrawGizmos (gizmos, drawNodes, redrawScope)

Draw gizmos for the graph.

Public
open

Is the graph open in the editor.

Public
RelocateNodes (deltaMatrix)

Moves the nodes in this graph.

Public
Scan ()

Scan the graph.

Public

Private/Protected Members

CalculateNodePosition (circle, angle, transform)

[step2]

Private Static
CreateNode (position)

Create a single node at the specified position.

Private
DeserializeExtraInfo (ctx)

Deserializes graph type specific node data.

Protected
DestroyAllNodes ()

Destroys all nodes in the graph.

Protected
DisposeUnmanagedData ()

Cleans up any unmanaged data that the graph has.

Protected
DrawUnwalkableNodes (gizmos, size, redrawScope)
Protected
exists

True if the graph exists, false if it has been destroyed.

Package
OnDestroy ()

Function for cleaning up references.

Protected
PostDeserialization (ctx)

Called after all deserialization has been done for all graphs.

Protected
ScanInternal ()

[step2]

Protected
ScanInternal (async)

Internal method to scan the graph.

Protected
SerializeExtraInfo (ctx)

Serializes graph type specific node data.

Protected
transform
Private