Home > Blockchain >  IL2CPP interfering with gravity (RigidBody)
IL2CPP interfering with gravity (RigidBody)

Time:07-12

I have created an app in unity to load asset bundles. When I load asset bundles, game objects with rigid body components and isGravity is off are working fine. But when I enable isGravity, gameo bjects start to pass through each others. This problem is Only happening in IL2CPP build but every thing is working fine in Mono build settings. My unity version is 2019.4. Thank you in Advance.

CodePudding user response:

If it works in the Mono version, it is probably a Unity bug. If you can, update Unity to a newer version, and see if the problem goes away.

CodePudding user response:

While searching some topics, I found out that Unity has a setting called "Strip Engine Code" that is enabled in IL2CPP. This setting is enabled by default in IL2CPP to remove unwanted or not useful codes. As a result, the scripts used in Asset bundles are not included while building IL2CPP Android apps.

  • Related