Thanks to @Palle Due, I've found the null
. It's not in the codes I posted, but in the inner call. To be more precise, the Invoke
call will invoke an anonymous function. And in the anonymous function there's a call on null
reference. I guess the Unity Editor console has its limit tracing exceptions in this case.