I've been trying to use the AutoSave feature to implement saving and loading in my game, and had no problems when it came to testing in a basic scene. However, I'm running into an error when trying to implement it to actually save the game. There's a "Player" monobehaviour class which keeps a reference to a "Vertex" monobehaviour class which I've implemented. The Vertex class is a monobehaviour class and Prefab which I instantiate at runtime elsewhere in the code.
Code: Select all
public class OverworldPlayer : MonoBehaviour {
public Vertex currentVertex;
...
public Void SetVertex(Vertex inVertex)
{
currentVertex = inVertex
}