yasirkula / UnityRuntimeInspector

Runtime Inspector and Hierarchy solution for Unity for debugging and runtime editing purposes
MIT License
1.75k stars 139 forks source link

IL2CPP Compatibility #28

Closed Bit00009 closed 3 years ago

Bit00009 commented 3 years ago

Hello yasirkula, I just noticed UnityRuntimeInspector doesn't work properly with IL2CPP build. For an example In unity editor I have a light in the scene, when I select the light in inspector all of light component parameters are exposed, color ,intensity and etc. But in IL2CPP build the only thing gets exposed is Enabled and Bake Index. I guess it's because you use .net reflection to extract fields but when it gets converted to C++ it can't be working the same way. Do you have any solution for this or do you have plans to support IL2CPP as well?

Regards, Ultran

yasirkula commented 3 years ago

Please see https://github.com/yasirkula/UnityRuntimeInspector/issues/10

Bit00009 commented 3 years ago

Thanks! Should I do this for all the parameters? I know unity has something as [Preserve] attribute but anyway I can apply it to Light Object?

yasirkula commented 3 years ago

Or you could check this out: https://usingtheirs.github.io/2018/10/29/Preserving-Unity-Engine-Classes-against-IL2CPP-Byte-Code-Stripping/