Hello, I've added a button to the Title UI (ctrl+C ctrl+V) as in Custom UI example, and entered string
@showUI CreditsUI
in it. After getting an error, I've replaced this to
Code: Select all
@showUI SettingsUI
. But every time this calls an error on click:
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
Naninovel.ScriptPlayer.PlayTransientAsync (Naninovel.ScriptPlaylist playlist, Naninovel.CancellationToken cancellationToken) (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:350)
UniRx.Async.UniTaskCompletionSource.UniRx.Async.IAwaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTaskCompletionSource.cs:112)
UniRx.Async.UniTask.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:59)
UniRx.Async.UniTask+Awaiter.GetResult () (at Assets/Naninovel/ThirdParty/UniTask/UniRx.Async/UniTask.cs:226)
Naninovel.PlayScript.PlayScriptAsync () (at Assets/Naninovel/Runtime/Script/PlayScript.cs:68)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <71147ca0460545bb99f0885992f306af>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <bd0fb0ffb410470d90a48d812f5481ae>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <bd0fb0ffb410470d90a48d812f5481ae>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <bd0fb0ffb410470d90a48d812f5481ae>:0)