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

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