Unity Version 2020.1.6f1
Inside of our game, we use reflection “GetProperties” to get all the properties from different modules in the Particle System for various procedurally balancing particle system reasons. In the game normally and in non-IL2CPP builds, when we do “GetProperties” on the Emission Module, we get the following properties:
“type, rate, rateMultiplier, enabled, rateOverTime, rateOverTimeMultiplier, rateOverDistance, rateOverDistanceMultiplier, burstCount”
However, when we make a IL2CPP build, the only properties in the module become:
“enabled, rateOverTime, rateOverTimeMultiplier”
I imagine that when it makes a IL2CPP build, the classes are reconstructed, but I find it strange that some of the properties straight up go missing. I’d like to have access to the same properties I see are visible when making non-IL2CPP builds. Any ideas?
The binding flags I use: BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Default;
The method I’m debugging is by looping over GetProperty of the emission module and outputing each property name. There is defiantly some missing in the IL2CPP build.