public ObjectBuildFactory(BaseXmlElementInfo parentElement, string gameObjectName, bool supportsChildren) { this.parentElement = parentElement; this.gameObjectName = gameObjectName; SupportsChildren = supportsChildren; }
public static BaseXmlElementInfo AddOptionalBackground(this BaseXmlElementInfo element) { return(element.AddOptionalComponent <Image>((g, c) => { g.type = Image.Type.Sliced; g.raycastTarget = false; }, AttributeHandlers.Image, AttributeHandlers.Shadow, AttributeHandlers.Graphic)); }
public static BaseXmlElementInfo AddGenericProperties(this BaseXmlElementInfo element) { return(element.AddOptionalComponent <CanvasGroup>(AttributeHandlers.CanvasGroup)); }