Class GridNodeBase Extends GraphNode
Base class for GridNode and LevelGridNode.
Public Methods
Add a connection from this node to the specified node.
Remove all connections from this node.
Same as ClearConnections, but does not clear grid connections, only custom ones (e.g added by AddConnection or a NodeLink component)
Checks if this node has a connection to the specified node.
Used to deserialize references to other nodes e.g connections.
Calls the delegate with all connections and respective costs from this node.
Calls the delegate with all connections from this node.
Hash code used for checking if the gizmos need to be updated.
Adjacent grid node in the specified direction.
Open the node.
A random point on the surface of the node.
Removes any connection from this node to the specified node.
Used to serialize references to other nodes e.g connections.
The surface area of the node in square world units.
Internal method to update the G score.
Public Variables
True if the node has grid connections to all its 8 neighbours.
The index of the node in the grid.
Temporary variable used internally when updating the graph.
Stores walkability before erosion is applied.
X coordinate of the node in the grid.
Z coordinate of the node in the grid.
Inherited Public Members
Connected component that contains the node.
Deserializes node data (for example when loading graphs from file).
Holds various bitpacked variables.
Internal method to run a flood fill in order to recalculate the Area property.
Add a portal from this node to the specified node.
Graph which this node belongs to.
Graph which contains this node.
Max number of graphs-1.
Internal unique index.
Open the node cooperatively.
Penalty cost for walking on this node.
Position of the node in world space.
Recalculates all connection costs from this node.
Serializes node data (for example when saving graphs to file).
Node tag.
True if the node can be traversed.
Private/Protected Members
Destroys the node.
Bitpacked field holding several pieces of data.
Bitfield containing the x and z coordinates of the node as well as the layer (for layered grid graphs).
Temporary flag for internal purposes.
Temporary flag for internal purposes.