BakingSheet icon indicating copy to clipboard operation
BakingSheet copied to clipboard

Consideration about link.xml

Open cathei opened this issue 2 years ago • 1 comments

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.

Unity documentation

cathei avatar Aug 14 '22 00:08 cathei

It turned out some properties still need to be preserved. I added PreserveAttribute to prevent Unity code stripper to strip some properties.

cathei avatar Aug 14 '22 19:08 cathei

Possible alternative approach: use the setter of the backing field instead when setter is stripped.

cathei avatar Aug 29 '22 15:08 cathei

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

cathei avatar Sep 01 '22 04:09 cathei