public void DeSerializeSettings(NavGraph target, AstarSerializer serializer) { pivot = (GridPivot)serializer.GetValue("pivot", typeof(int), GridPivot.BottomLeft); locked = (bool)serializer.GetValue("locked", typeof(bool), true); showExtra = (bool)serializer.GetValue("showExtra", typeof(bool)); }