Home

Awesome

Polar ImGui

This is an implementation of ImGui for Android Unity-based games using il2cpp.

Visit the Polarmods forum

Join our Discord

Android Studio

  1. First of all, download Android Studio here. Then, complete the installation process.
  2. Download the PolarImGui repository, and extract it with any archiver (such as 7-Zip, WinRAR, etc).

image

image

  1. 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 the latest lts version, which can be downloaded here.

image

  1. Build it! (Build -> Build Bundle(s)/APK(s) -> Build APK(s), or Ctrl + F9).

Implementation

Implementing the menu into an application is very easy, just follow the steps below!

  1. Once you build the apk, open it using an archiver (such as 7-Zip, WinRAR, etc), and find the 'lib' directory.

image

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.

image

  1. Move the 'libnative-lib.so' library to the target applications lib/chosen-cpu-architecture/ folder.

image

  1. 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

image

  1. Compile it!

Notes

<img width="1276" alt="POLARMODS-BANNER-HQ-2" src="https://user-images.githubusercontent.com/64957743/173014961-edc5c55f-8dca-4c39-a1aa-c3a22f8beb22.png">