コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
        /// <summary>
        /// 创建相机
        /// </summary>
        /// <param name="munuCommand"></param>
        public static void CreateCamera(MenuCommand menuCommand)
        {
            var cam = UGUIOptTool.CreatCustomUGUI <Camera>();

            UGUIOptimizeStrategy.ModifyCame(cam);
        }