void CopyCategory(GraphData graphData) { AssertHelpers.IsNotNull(graphData, "GraphData is null while carrying out CopyCategoryAction"); AssertHelpers.IsNotNull(categoryToCopyReference, "CategoryToCopyReference is null while carrying out CopyCategoryAction"); // This is called by MaterialGraphView currently, no need to repeat it here, though ideally it would live here //graphData.owner.RegisterCompleteObjectUndo("Copy Category"); newCategoryDataReference = graphData.CopyCategory(categoryToCopyReference); }