Here is the full error: http://puu.sh/nz8dL/08c73fb0f1.png It only happens in a build. I have tried completely removing all plugins from the project, but it wasn't that. The only 2 serialized classes I have are these:
[System.Serializable]
public class PlayerStats
{
public int startHealthPoints;
public float baseSpeed;
}
and
[System.Serializable]
public class GameRoom
{
public string roomName;
public int playerLimit;
public string hostIp;
public int hostPort;
public GameRoom(string roomName, int playerLimit, string hostIp, int hostPort)
{
this.roomName = roomName;
this.playerLimit = playerLimit;
this.hostIp = hostIp;
this.hostPort = hostPort;
}
}
They were working fine before, but then I swapped computer, and now it's not working in the build anymore.
**Edit:** It seems to not be a problem with my [Serializable] classes, but rather with my ScriptableObjects. Here is how I have them structured: http://hastebin.com/vetecuwoma.hs If I remove all references to the ScriptableObject, the errors disappear, even when the objects are still in my assets. So as the error suggests, it's with the serialization. Any help is much appreciated!
↧