sneakyevilSK / IL2CPP_Resolver

A run-time API resolver for IL2CPP Unity.

Home Page:https://sneakyevil.gitbook.io/il2cpp-resolver/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IL2CPP Resolver

A run-time API resolver for IL2CPP Unity.

External Version

Donate

Quick Example

#include "Main.hpp"

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

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

Registering OnUpdate Callback

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

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

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

More: https://sneakyevil.gitbook.io/il2cpp-resolver/

About

A run-time API resolver for IL2CPP Unity.

https://sneakyevil.gitbook.io/il2cpp-resolver/

License:The Unlicense


Languages

Language:C++ 100.0%