Skip to content

NepMods/Il2cpp_Resolver_Android

 
 

Repository files navigation

IL2CPP Resolver

A run-time API resolver for IL2CPP Unity for Android.

Credits SneakyEvil IL2CPP_Resolver

Quick Example

#include "Il2cpp_Resolver_Android/IL2CPP_Resolver.hpp"

void SomeFunction()
{
    IL2CPP::Initialize(); // This needs to be called once!

    Unity::CGameObject* m_Local = Unity::GameObject::Find("LocalPlayer");
    Unity::CComponent* m_LocalData = m_Local->GetComponent("PlayerData");
    m_LocalData->SetMemberValue<bool>("CanFly", true);
}

Registering OnUpdate Callback

void OurUpdateFunction()
{
    // Your special code...
}

void OnLoad()
{
    IL2CPP::Initialize();

    IL2CPP::Callback::Initialize();
    IL2CPP::Callback::OnUpdate::Add(OurUpdateFunction);
}

Requirements

  • C++17 or Greater.
  • Android only.

About

A run-time API resolver for IL2CPP Unity for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%