Ejemplo n.º 1
0
            public ObjectBuildFactory(BaseXmlElementInfo parentElement, string gameObjectName, bool supportsChildren)
            {
                this.parentElement  = parentElement;
                this.gameObjectName = gameObjectName;

                SupportsChildren = supportsChildren;
            }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 public static BaseXmlElementInfo AddGenericProperties(this BaseXmlElementInfo element)
 {
     return(element.AddOptionalComponent <CanvasGroup>(AttributeHandlers.CanvasGroup));
 }