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