示例#1
0
            public ObjectBuildFactory(BaseXmlElementInfo parentElement, string gameObjectName, bool supportsChildren)
            {
                this.parentElement  = parentElement;
                this.gameObjectName = gameObjectName;

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