Hi,
When I use the “construct Matrix” node in a new subgraph operator and I create the node in a visual graph I get this error.
I am using unity 2021.20b15.
I think this is a bug or is there a reason this node doesn`t work in a subgraph operator?
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.VFX.VFXSubgraphOperator.RecreateCopy () (at Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Editor/Models/Operators/VFXSubgraphOperator.cs:116)
UnityEditor.VFX.VFXSubgraphOperator.Invalidate (UnityEditor.VFX.VFXModel model, UnityEditor.VFX.VFXModel+InvalidationCause cause) (at Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Editor/Models/Operators/VFXSubgraphOperator.cs:184)
UnityEditor.VFX.VFXModel.Invalidate (UnityEditor.VFX.VFXModel+InvalidationCause cause) (at Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Editor/Models/VFXModel.cs:361)
UnityEditor.VFX.VFXModel.SetSettingValue (System.String name, System.Object value, System.Boolean notify) (at Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Editor/Models/VFXModel.cs:318)
UnityEditor.VFX.VFXModel.SetSettingValue (System.String name, System.Object value) (at Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Editor/Models/VFXModel.cs:298)
UnityEditor.VFX.UI.VFXView.OnDragPerform (UnityEngine.UIElements.DragPerformEvent e) (at Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Editor/GraphView/Views/VFXView.cs:2738)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToRegularTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel iPanel) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <7b54c84c069d40889365f862deac055a>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at :0)
Just ran into the same issue in 2020.3.28
ConstructMatrix was the only operator I’ve found where its class name (MatrixFromVector4) doesn’t match the file name in which it is defined (ConstructMatrix.cs). I know this is a problem for MonoBehaviours, maybe also here. Haven’t found a workaround, though.
koirat
November 3, 2023, 9:48pm
3
2021.3.31
Also have problems with construct matrix.
Sometimes this block even disappears from my graph.