Unity3dAsyncAwaitUtil icon indicating copy to clipboard operation
Unity3dAsyncAwaitUtil copied to clipboard

this fails on il2cpp builds

Open extrawurst opened this issue 5 years ago • 1 comments

this method in C#

private async void DelayedFakeChat()
{
  await new WaitForSeconds(1.0f);
  _signalBus.Fire(...);
}

fails to build in an il2cpp build:

Bulk_Assembly-CSharp_1.cpp:21899:9: assigning to 'RuntimeObject *' (aka 'Il2CppObject *') from incompatible type 'U3CDelayedFakeChatU3Ed__51_t8460B8A56468D8BC08EE7C35ACAE8A2C8ABDECBE'

any ideas? should it even work on il2cpp?

i am on unity 2018.4.2

extrawurst avatar Jun 15 '19 22:06 extrawurst

this method in C#

private async void DelayedFakeChat()
{
  await new WaitForSeconds(1.0f);
  _signalBus.Fire(...);
}

fails to build in an il2cpp build:

Bulk_Assembly-CSharp_1.cpp:21899:9: assigning to 'RuntimeObject *' (aka 'Il2CppObject *') from incompatible type 'U3CDelayedFakeChatU3Ed__51_t8460B8A56468D8BC08EE7C35ACAE8A2C8ABDECBE'

any ideas? should it even work on il2cpp?

i am on unity 2018.4.2

i build this project success on android il2cpp : 2019.2.3f1

chiuan avatar Sep 17 '19 10:09 chiuan