Utility-Ai-Creator-For-Unity
Utility-Ai-Creator-For-Unity copied to clipboard
AgentAction scripts within a namespace causes null exceptions
If an AgentAction is wrapped in any namespace it will appear in the list of actions but selecting it will cause a NullReferenceException with the following stack trace:
NullReferenceException: Object reference not set to an instance of an object
Decision.SetParent (AiObjectModel parent, System.Int32 indexInParent) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Models/Decisions/Decision.cs:78)
AiObjectModel.UpdateInfo () (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Models/Abstract/AiObjectModel.cs:71)
UtilityContainer.UpdateInfo () (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Models/Abstract/UtilityContainer.cs:65)
Decision.UpdateInfo () (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Models/Decisions/Decision.cs:89)
Decision.<set_AgentActions>b__6_0 (System.Collections.Generic.List`1[T] _) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Models/Decisions/Decision.cs:27)
UniRx.Observer+Subscribe`1[T].OnNext (T value) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Editor/UniRx/Scripts/Observer.cs:165)
UniRx.InternalUtil.ListObserver`1[T].OnNext (T value) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Editor/UniRx/Scripts/InternalUtil/ListObserver.cs:39)
UniRx.Subject`1[T].OnNext (T value) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Editor/UniRx/Scripts/Subjects/Subject.cs:68)
UniRxExtension.ReactiveList`1[T].Add (T element) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Services/UniRxExtension/ReactiveList.cs:38)
UniRxExtension.ReactiveListNameSafe`1[T].Add (T element) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Runtime/Services/UniRxExtension/ReactiveListNameSafe.cs:24)
CollectionViewModel`1[T].AddElement (T element) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Editor/UI/Components/Collection/CollectionViewModel.cs:137)
CollectionViewModel`1[T].AddCopy (System.String aiObjectName) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Editor/UI/Components/Collection/CollectionViewModel.cs:132)
CollectionViewModel`1[T].OnAddCopyValueChanged (UnityEngine.UIElements.ChangeEvent`1[T] evt) (at ./Library/PackageCache/net.devoe.ai.uas@cb364dac50/Editor/UI/Components/Collection/CollectionViewModel.cs:119)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <605bf8b31fcb444b85176da963870aa7>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
Saving the project from this point will also cause exceptions unless the decision is removed.