public static void InitialUI() { ModelManagerUI.RegComponent(new ComponentType <RectTransform, ModelElement>(ModelElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Image, ImageElement>(ImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <EmojiText, TextElement>(TextElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Text, TextElement>(TextElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <CustomRawImage, RawImageElement>(RawImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <RawImage, RawImageElement>(RawImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <RectMask2D, RectMaskElement>(RectMaskElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Mask, MaskElement>(MaskElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Outline, OutLineElement>(OutLineElement.LoadFromObject)); }
public static void RegUI() { ModelManagerUI.RegComponent(new ComponentType <RectTransform, ModelElement>(ModelElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Image, ImageElement>(ImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <ShareTextChild, ShareTextChildElement>(null)); ModelManagerUI.RegComponent(new ComponentType <ShareText, ShareTextElement>(null)); ModelManagerUI.RegComponent(new ComponentType <EmojiText, EmojiElement>(TextElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Text, TextElement>(TextElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <ShareImageChild, ShareImageChildElement>(null)); ModelManagerUI.RegComponent(new ComponentType <ShareImage, ShareImageElement>(RawImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <CustomRawImage, RawImageElement>(RawImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <RenderImage, RenderImageElement>(RawImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <RawImage, RawImageElement>(RawImageElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <RectMask2D, RectMaskElement>(RectMaskElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Mask, MaskElement>(MaskElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Outline, OutLineElement>(ShadowElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <Shadow, ShadowElement>(ShadowElement.LoadFromObject)); ModelManagerUI.RegComponent(new ComponentType <UILayout, huqiang.UI.LayoutElement>(null)); }