Class AstarData
Public
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
DeserializeGraphsAdditive
(bytes)
Deserializes and loads graphs from the specified byte array additively.
RemoveGraph
(graph)
Removes the specified graph from the graphs array and Destroys it in a safe manner.
Public Static Methods
Public Variables
cacheStartup
Should graph-data be cached.
Public
file_cachedStartup
Serialized data for cached startup.
Public
graphs
All graphs.
Public
Public Static Variables
graphTypes
All supported graph types.
Public
Static
Private/Protected Members
LockGraphStructure
(allowAddingGraphs=…)
Prevent the graph structure from changing during the time this lock is held.
MarkerDeserializeGraphs
Private
Static
Readonly
MarkerFindGraphTypes
Private
Static
Readonly
MarkerLoadFromCache
Private
Static
Readonly
MarkerSerializeGraphs
Private
Static
Readonly
data
Serialized data for all graphs and settings.
Private
dataString
Serialized data for all graphs and settings.
Private
graphStructureLocked
Private