In Visual Studio 2022, I added this line into C/C++ -> Additional Include Directories
C:\Path\To\Project\IL2CPP_Resolver
When I include
#include "Main.hpp"
And use something like this:
IL2CPP::Initialize(); // This needs to be called once!
Unity::il2cppArray<Unity::CGameObject**>* m_pObjects = Unity::Object::FindObjectsOfType<Unity::CGameObject*>("UnityEngine.GameObject");
In Visual Studio 2022, I added this line into C/C++ -> Additional Include Directories
C:\Path\To\Project\IL2CPP_Resolver
When I include
#include "Main.hpp"
And use something like this:
Then I get these errors:
I am not a cpp dev so excuse my ignorance.