コード例 #1
0
 void AddCategory(GraphData graphData)
 {
     AssertHelpers.IsNotNull(graphData, "GraphData is null while carrying out AddCategoryAction");
     graphData.owner.RegisterCompleteObjectUndo("Add Category");
     // If categoryDataReference is not null, directly add it to graphData
     if (categoryDataReference == null)
     {
         categoryDataReference = new CategoryData(categoryName, childObjects);
     }
     graphData.AddCategory(categoryDataReference);
 }