This morning I created a relatively simple behavior graph in Unity 2022.3.4. After upgrading editor version to 2022.3.17, the graph no longer can be edited (shows an empty graph window) and I get the following 2 errors in console:
Exception thrown while invoking [OnOpenAssetAttribute] method ‘Unity.Muse.Behavior.BehaviorAuthoringGraph:step1 (int,int)’ : NullReferenceException: Object reference not set to an instance of an object
Unity.Muse.Behavior.EventNodeModel.EnsureFieldValuesAreUpToDate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Runtime/Asset/Models/EventNodeModel.cs:58)
Unity.Muse.Behavior.BehaviorGraphNodeModel.OnValidate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Runtime/Asset/Models/BehaviorGraphNodeModel.cs:50)
Graph.GraphAsset.OnValidate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Tools/Graph/Asset/GraphAsset.cs:83)
Unity.Muse.Behavior.BehaviorAuthoringGraph.OnValidate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Runtime/Asset/BehaviorAuthoringGraph.cs:68)
Graph.GraphEditor.Load (Graph.GraphAsset asset) (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/GraphEditor.cs:90)
…truncated
[Worker0] NullReferenceException: Object reference not set to an instance of an object
Unity.Muse.Behavior.EventNodeModel.EnsureFieldValuesAreUpToDate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Runtime/Asset/Models/EventNodeModel.cs:58)
Unity.Muse.Behavior.BehaviorGraphNodeModel.OnValidate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Runtime/Asset/Models/BehaviorGraphNodeModel.cs:50)
Graph.GraphAsset.OnValidate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Tools/Graph/Asset/GraphAsset.cs:83)
Unity.Muse.Behavior.BehaviorAuthoringGraph.OnValidate () (at ./Library/PackageCache/com.unity.muse.behavior@0.5.11/Runtime/Asset/BehaviorAuthoringGraph.cs:68)
Unclear if it’s related to the version upgrade or not, but that’s the only thing that changed.
Happy to provide a .unitypackage with the graph and related scripts ![]()