-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
What is the game you are using with IL2CPP Resolver?
Ninja Kaizen
Details:
I trying to get gameobject and destroy it but always get "Fatal error. Invalid Program: attempted to call a UnmanagedCallersOnly method from managed code." and crash even after gameobject is found i just print for debug is still same error
void DestroyDetector()
{
Unity::Object::Initialize();
Unity::CGameObject* detectorManager = Unity::GameObject::Find("DetectorManager");
if (detectorManager != nullptr)
{
//detectorManager->Destroy();
printf("detectorManager GameObject found!");
}
}
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels