public static void CreateGraphicalComponent(this GraphicalUiElement graphicalElement, ElementSave elementSave, SystemManagers systemManagers) { IRenderable containedObject = null; bool handled = InstanceSaveExtensionMethods.TryHandleAsBaseType(elementSave.Name, systemManagers, out containedObject); if (handled) { graphicalElement.SetContainedObject(containedObject); } else { if (elementSave != null && elementSave is ComponentSave) { var baseElement = Gum.Managers.ObjectFinder.Self.GetElementSave(elementSave.BaseType); if (baseElement != null) { graphicalElement.CreateGraphicalComponent(baseElement, systemManagers); } } } }