Unity 5.3.2
I can communicate to my server just fine if I run it in the Game View.
But when I try to build to WebGL (Development build) and run, I get the error:
LoginRegisterData cannot be serialized because it does not have a default public constructor
But I do??
public class LoginRegisterData
{
[XmlElement]
public string Username { get; set; }
[XmlElement]
public string Password { get; set; }
[XmlElement]
public int Id { get; set; }
[XmlElement]
public string Pool { get; set; }
[XmlElement]
public bool Verified { get; set; }
[XmlElement]
public string FailMessage { get; set; }
public LoginRegisterData() { }
}
I really don’t know what to do at this point.