I am trying to save a game state object that has a child object, let's say object Parent and object child. Both of these I have added as custom types. Originally I had planned to have both parent and child inherit ScriptbleObject. This has proven un-workable and I have reverted to plain classes only. However now when I try to save the child object within the parent object, I am getting a strange error.
Code: Select all
ArgumentException: Only types of UnityEngine.ScriptableObject can be written with this method, but argument given is type of Poltergeist.InvestigationData
Thanks