yunli97

Results 6 comments of 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. ![image](https://github.com/user-attachments/assets/071f0dbc-2bc2-4b2a-8dfd-1f8b944eb019) 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);** ![image](https://github.com/user-attachments/assets/66d747f2-4872-4b91-a6cd-006bce7c7fbc) ![image](https://github.com/user-attachments/assets/7ac84c04-353c-4074-8933-8f432a499d2b) 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