Ejemplo n.º 1
0
        /// <summary>
        /// UGUI-Text
        /// </summary>
        /// <param name="menuCommand"></param>
        public static void CreatText(MenuCommand menuCommand)
        {
            var text = UGUIOptTool.CreatCustomUGUI <Text>();

            if (LitFramework.FrameworkConfig.Instance.UGUIOpt)
            {
                UGUIOptimizeStrategy.ModifyText(text);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// UGUI-Image
        /// </summary>
        /// <param name="menuCommand"></param>
        public static void CreatImage(MenuCommand menuCommand)
        {
            var image = UGUIOptTool.CreatCustomUGUI <Image>();

            if (LitFramework.FrameworkConfig.Instance.UGUIOpt)
            {
                UGUIOptimizeStrategy.ModifyImage(image);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 创建相机
        /// </summary>
        /// <param name="munuCommand"></param>
        public static void CreateCamera(MenuCommand menuCommand)
        {
            var cam = UGUIOptTool.CreatCustomUGUI <Camera>();

            UGUIOptimizeStrategy.ModifyCame(cam);
        }