宴のバージョン: 宴3.11.7
UnityのバージョンとOS: Unity2020.3.30f1 MacOS BigSur
Unityの習熟度:初心者
お疲れ様です。
今回、UI、特に選択肢を弄っていたのですが、
その過程か、以下のようなエラーが吐き出され、選択肢が表示されないようになってしまいました。
MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.get_name () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:194)
Utage.AdvUguiSelectionManager+<>c__DisplayClass25_0.<GetPrefab>b__0 (UnityEngine.GameObject x) (at Assets/Utage/Scripts/ADV/UI/AdvUguiSelectionManager.cs:143)
System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Utage.AdvUguiSelectionManager.GetPrefab (Utage.AdvSelection selectionData) (at Assets/Utage/Scripts/ADV/UI/AdvUguiSelectionManager.cs:143)
Utage.AdvUguiSelectionManager.CreateItems () (at Assets/Utage/Scripts/ADV/UI/AdvUguiSelectionManager.cs:103)
Utage.AdvUguiSelectionManager.OnBeginShow (Utage.AdvSelectionManager manager) (at Assets/Utage/Scripts/ADV/UI/AdvUguiSelectionManager.cs:185)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at /Users/bokken/buildslave/unity/build/Runtime/Export/UnityEvent/UnityEvent.cs:221)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at /Users/bokken/buildslave/unity/build/Runtime/Export/UnityEvent/UnityEvent/UnityEvent_1.cs:58)
Utage.AdvSelectionManager.Show () (at Assets/Utage/Scripts/ADV/Logic/Selection/AdvSelectionManager.cs:131)
Utage.AdvCommandSelectionEnd.DoCommand (Utage.AdvEngine engine) (at Assets/Utage/Scripts/ADV/Command/Logic/AdvCommandSelectionEnd.cs:19)
Utage.AdvScenarioThread+<CoStartPage>d__64.MoveNext () (at Assets/Utage/Scripts/ADV/Scenario/AdvScenarioThread.cs:348)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
プレハブはコピーをして外観、サウンド以外には触っていません。
また、AdvUguiSelectionManagerへのアサインもされています。
しかしやはりプレハブに原因があるのではないかと思うのですが…
また、StaticAssetManagerに設定されているファイルも削除されておらず、
どこに原因があるのかわからない状態です。
この場合何が原因と考えられるでしょうか。
お手数をおかけします。