void MoveItemRequested(Blackboard blackboard, int newIndex, VisualElement visualElement) { var property = visualElement.userData as IShaderProperty; if (property == null) { return; } m_Graph.MoveShaderProperty(property, newIndex); }
void MoveItemRequested(Blackboard blackboard, int newIndex, VisualElement visualElement) { var property = visualElement.userData as IShaderProperty; if (property == null) { return; } m_Graph.owner.RegisterCompleteObjectUndo("Move Property"); m_Graph.MoveShaderProperty(property, newIndex); }