Exclude baking-related code from Unity runtime? #24
Unanswered
laicasaane
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Good question - Higher AOT code stripping level should exclude the code that is not being used by your main assembly. Additionally, non-Json converters are included in Editor only by default. Can you give me more context though, what would be the primary reason of excluding reflection code? BakingSheet (and Json.NET) do need reflection to properly set values to your properties. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to only include the code that supports reading data in the final build. I don't want the build to contain any baking or reflection code. Could AOT code stripping help me with this if I never use baking code at runtime?
If AOT cannot help, would it be possible to restructure this library into a
BakingSheet.Runtime.asmdef
and aBakingSheet.Baketime.asmdef
, so that we can exclude or includeBakingSheet.Baketime.asmdef
at will?Beta Was this translation helpful? Give feedback.
All reactions