how to make game compatible for 32 and 64 bit devices

Plz someone guide me,how,that how do i make my game compatible for 32 and 64 bit devices,what settings should i go into?

In what way? For what platform?

I’ve never had to do anything different. On Android, you can check the boxes for 32 bit and 64 bit, but most platforms are getting away from 32 bit. Don’t think I’ve ever done any custom settings otherwise that I can think of.

1 Like

In the build settings you can select the target architecture. To develop for 32-bit systems, set it to x86, to develop for 64-bit systems set it to x64. A 32-bit application should run without a problem on a 64-bit system, but not vice versa.
So simply build it two times for the two different architectures. If you only want to build once for both, use 32-bit.
Dunno why you would want to develop for 32-bit systems tho. Desktop computers at least are trying to stay away from it. Not sure how it’s for phones.

1 Like

A 32-bit application should run without a problem on a 64-bit system

thanks alot for help

Just take note that depending on what platform, there may be other requirements. Example, if you are releasing on Google play store, they require you to have a 64 bit version, so you have to provide both. But there are options to do split builds or app bundles which cover the requirements.

yeah,we wanna publish on google play,what are those split bundles or app bundle,can u plz elaborate

Split bundle = It builds a 32 bit and 64 bit and you upload them both (you must select the 32 bit and 64 bit options plus the split bundle option in Unity). Google gives a warning about it not being as optimized, but it isn’t as bad as putting 32 and 64 in one bundle. Each one is slightly smaller and the user gets 64 or 32 depending on their device.

App bundle = A little bit more involved on the Google side to setup as you need to provide your keystore file, but it’s essentially one bundle that has both 32/64 and Google handles splitting it when a user downloads your game.

Both of these have different settings in Unity, but they are pretty straight forward. Just some checkboxes.