UnobservedTaskException:System.ArgumentException
Hi. I'm a novice of Naninovel. So please accept my apology if I post a silly question.
I created a project and just added a character, a background and a BGM. I saved the project and my script worked properly on a play mode.
Then I exited the Unity and I opened the Unity again, and then I tried to play my script on play mode and saw the error in console as below.
It would be great if one of you tell me how to fix it.
Unity version: 2019.4.14f1
Naninovel version: v1.14 build 2020-11-09
Thank you very much in advance.
Code: Select all
UnobservedTaskException:System.ArgumentException: The Object you want to instantiate is null.
at UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) [0x00009] in <9674024ab0e74d27bbe9eaa30dab34d1>:0
at UnityEngine.Object.Instantiate[T] (T original) [0x00001] in <9674024ab0e74d27bbe9eaa30dab34d1>:0
at Naninovel.RuntimeInitializer+<InitializeAsync>d__4.MoveNext () [0x0016c] in D:\myProject\Assets\Naninovel\Runtime\Engine\RuntimeInitializer.cs:63
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9577ac7a62ef43179789031239ba8798>:0
at UniRx.Async.UniTaskCompletionSource.UniRx.Async.IAwaiter.GetResult () [0x00026] in D:\myProject\Assets\Naninovel\ThirdParty\UniTask\UniRx.Async\UniTaskCompletionSource.cs:112
at UniRx.Async.UniTask.GetResult () [0x0000f] in D:\myProject\Assets\Naninovel\ThirdParty\UniTask\UniRx.Async\UniTask.cs:59
at UniRx.Async.UniTask+Awaiter.GetResult () [0x00000] in D:\myProject\Assets\Naninovel\ThirdParty\UniTask\UniRx.Async\UniTask.cs:226
at UniRx.Async.UniTaskExtensions+<ForgetCore>d__19.MoveNext () [0x0001b] in D:\myProject\Assets\Naninovel\ThirdParty\UniTask\UniRx.Async\UniTaskExtensions.cs:198
UnityEngine.Debug:LogError(Object)
UniRx.Async.UniTaskScheduler:PublishUnobservedTaskException(Exception) (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskScheduler.cs:66)
UniRx.Async.CompilerServices.AsyncUniTaskVoidMethodBuilder:SetException(Exception) (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/CompilerServices/AsyncUniTaskVoidMethodBuilder.cs:31)
UniRx.Async.<ForgetCore>d__19:MoveNext() (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskExtensions.cs:198)
UniRx.Async.CompilerServices.AsyncUniTaskVoidMethodBuilder:Start(<ForgetCore>d__19&) (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/CompilerServices/AsyncUniTaskVoidMethodBuilder.cs:79)
UniRx.Async.UniTaskExtensions:ForgetCore(UniTask)
UniRx.Async.UniTaskExtensions:Forget(UniTask) (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskExtensions.cs:180)
Naninovel.RuntimeInitializer:OnApplicationLoaded() (at Assets/Naninovel/Runtime/Engine/RuntimeInitializer.cs:153)