> For the complete documentation index, see [llms.txt](https://sneakyevil.gitbook.io/il2cpp-resolver/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sneakyevil.gitbook.io/il2cpp-resolver/callback/onupdate.md).

# OnUpdate

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

void OnLoad()
{
    IL2CPP::Callback::Initialize();
    IL2CPP::Callback::OnUpdate::Add(OurUpdateFunction);
}
```
