BakingSheet
BakingSheet copied to clipboard
Consideration about link.xml
AOT code stripping could affect reflection. BakingSheet has been deployed link.xml with .unitypackage.
But this needs to be tested again since we moved to embedded package. Also, Unity does not support link.xml from pacakge.
At least I can say that when user trying to ship a mobile build with Google converter, they'll need link.xml.
It turned out some properties still need to be preserved.
I added PreserveAttribute
to prevent Unity code stripper to strip some properties.
Possible alternative approach: use the setter of the backing field instead when setter is stripped.
Will close this due to:
- Json.NET won't support deserializing getter-only property (https://github.com/JamesNK/Newtonsoft.Json/issues/703)
- Documentation about link.xml has been added