# Class AstarData

Stores the navigation graphs for the A* Pathfinding System.

An instance of this class is assigned to AstarPath.data, from it you can access all graphs loaded through the graphs variable.

This class also handles a lot of the high level serialization.

## Public Methods

Deserializes graphs from the specified byte array.

Deserializes graphs from the specified byte array additively.

Returns the first graph which satisfies the predicate.

Find all graph types supported in this build.

Returns the first graph which inherits from the type **type**.

Loop through this function to get all graphs of type 'type'.

Calls the **callback** with every node in all graphs.

All graphs which implements the UpdateableGraph interface.

Loads the graphs from memory, will load cached graphs if any exists.

Removes the specified graph from the graphs array and Destroys it in a safe manner.

Serializes all graphs settings to a byte array.

Serializes all graphs settings and optionally node data to a byte array.

Main serializer function.

Updates shortcuts to the first graph of different types.

## Public Static Methods

Returns the graph which contains the specified node.

## Public Variables

Should graph-data be cached.

Serialized data for cached startup.

All supported graph types.

All graphs this instance holds.

## Private/Protected Members

Creates a new graph instance of type **type**.

Helper function for deserializing graphs.

Makes all graphs become unscanned.

Prevent the graph structure from changing during the time this lock is held.

Allows the graph structure to change again.

Serialized data for all graphs and settings.

Serialized data for all graphs and settings.

Data from versions from before 3.6.1.

## Deprecated Members

Creates a new instance of a graph of type **type**.

All graphs which implements the UpdateableGraph interface.

Serialized data for cached startup.