#My C# "async Task Awake()" is never being called.

1 messages · Page 1 of 1 (latest)

granite iron
#

This is what my code looks like, like the title says, it never executes the contents.

async Task Awake()
{
    //code to execute, connecting to remote config for example
}
hoary spruce
#

Pretty sure you need async void Awake, not async Task Awake.

rigid mortar
#

Unity does not support its messages returning Task