yunli97
yunli97
UNITY_VER 222
The crash issue has been resolved, thank you
I changed sleep(1) to usleep(1) and it works again.
yes, I hook **AdsManager**(MonoBehaviour) .**ctor** method in OnLoaded_SomeMethod,and create object here.  Does this still count as calling a unity method outside of the main thread?
I tried to use **AttachIl2Cpp()**,but this still crash ,when Code executed to **AddComponent[new_GameObject].Call(MyClass::BNMCustomClass.type);**   From the logs, it seems that he is on the main thread
Running it in a sub-thread causes all sorts of weird problems, and I've given up on it