AD
Size: a a a
AD
AD
ВК
AD
AZ
AD
AZ
GB
S
S
public void Save()
{
saveGame.playerPosition = transform.position;
BinaryFormatter bf = new BinaryFormatter();
FileStream file = File.Create(Application.persistentDataPath + "/gamesave.dat");
bf.Serialize(file, saveGame);
file.Close();
}
S
SerializationException: Type 'UnityEngine.MonoBehaviour' in Assembly 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.как исправить куда копать?
SA
public void Save()
{
saveGame.playerPosition = transform.position;
BinaryFormatter bf = new BinaryFormatter();
FileStream file = File.Create(Application.persistentDataPath + "/gamesave.dat");
bf.Serialize(file, saveGame);
file.Close();
}
S
AD
SA
[System.Serializable]
на объявление типаS
[System.Serializable]
на объявление типаE
DV
SA
SA