private void CreateBlueprint(ShapeBlueprintFactory.ShapeBlueprintType blueprintType) { ShapeBlueprint blueprint = m_ShapeBlueprintFactory.CreateShapeBlueprint(blueprintType); VisualElement visualElement = ShapeBlueprintEditorFactory.GetVisualElement(blueprint, RemoveBlueprint); m_BaseVisualElement.Add(visualElement); }
private VisualElement GetBaseVisualElement() { VisualElement visualElement = new VisualElement(); if (m_ShapeBlueprintFactory == null) { return(visualElement); } foreach (ShapeBlueprint blueprint in m_ShapeBlueprintFactory.ShapeBlueprints) { visualElement.Add(ShapeBlueprintEditorFactory.GetVisualElement(blueprint, RemoveBlueprint)); } return(visualElement); }