SpawnedObject(Dialogue System)
Posted: Mon Mar 11, 2024 12:40 pm
Hi
I can't figure out how to save/load a spawned object's state.
For some reason the parameter of ApplyData is always empty (the object spawns on it's last position).
Thank you for help.
I can't figure out how to save/load a spawned object's state.
For some reason the parameter of ApplyData is always empty (the object spawns on it's last position).
Thank you for help.
Code: Select all
public class SpawnedItem : PixelCrushers.Wrappers.SpawnedObject {
public override string RecordData() {
//setting saveData json string
retrun saveData;
}
public override void ApplyData(string data) {
Debug.Log($"ApplyData: {data}"); // the data is always empty
}
}