A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
ISerializableObject Interface Reference
+ Inheritance diagram for ISerializableObject:

Public Member Functions

void DeSerializeSettings (AstarSerializer serializer)
 Called to deserialize the object.
 
void SerializeSettings (AstarSerializer serializer)
 Called to serialize the object.
 

Member Function Documentation

void DeSerializeSettings ( AstarSerializer  serializer)

Called to deserialize the object.

All variables and data which are to be loaded should be loaded using Pathfinding::AstarSerializer::GetValue

//Loads the integer variable myVariable from the serialized data
myVariable = (int)serializer.GetValue ("myVariable",typeof(int));


A default value can also be passed, in case the variable isn't contained in the data that will be returned instead

//Loads the integer variable myVariable with the default value of 512
myVariable = (int)serializer.GetValue ("myVariable",typeof(int),512);

+ Here is the caller graph for this function:

void SerializeSettings ( AstarSerializer  serializer)

Called to serialize the object.

All variables and data which are to be saved should be passed to the serialized using Pathfinding::AstarSerializer::AddValue

serializer.AddValue ("myVariable",myVariable);

+ Here is the caller graph for this function:


The documentation for this interface was generated from the following file: