This is an implementation of ImGui for Android Unity-based games using il2cpp.
- First of all, download Android Studio here. Then, complete the installation process.
- Download the PolarImGui repository, and extract it with any archiver (such as 7-Zip, WinRAR, etc).
- Now, open the project in Android Studio. You will need to wait for the gradle to sync once it is open. As for the NDK, I recommend using version r21e, which can be downloaded here.
- Build it! (Build -> Build Bundle(s)/APK(s) -> Build APK(s), or Ctrl + F9).
Implementing the menu into an application is very easy, just follow the steps below!
- Once you build the apk, open it using an archiver (such as 7-Zip, WinRAR, etc), and find the 'lib' directory.
From there, you will be presented with two additional folders. Choose the folder that resembles the cpu architecture you want to use (whether it be armeabi-v7a, or arm64-v8a). I would also like to mention that you can implement both libraries into a game if it supports ARMv7a and ARMv8a, and it will work for most games (Guns of Boom did crash when I tested this on that game though)! So, there is no need to remove the folders as you 'normally' would.
- Move the 'libnative-lib.so' library to the target applications lib/chosen-cpu-architecture/ folder.
- Then, find your applications launch activity, and place the following code under the 'onCreate' method in that launch activity.
const-string v0, "native-lib"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
- Compile it!
- This was the first ImGui Android implementation for Unity-based games using il2cpp, before people (whom we won't mention) leeched from it to create their own version. Yes, we will be updating the menu with new features when we can.