Scott Inglis @sdcinglis.com · Aug 29

Rare Unity edge case unlocked, if you have a class marked [Serializable] with only parameterized constructors, Unity can still instantiate it, but it just won't assign any of your default member values. That was fun to debug...

0 likes 1 replies

?

Replies

Scott Inglis · Aug 31

I raised this with our Unity support rep, it's not a big deal once you've learned about it, but it feels like an easy trap for a less experienced team to get caught on. Hoping they can fix it, or if it's a limitation of C#, at least warn the users of the potential issue.