void DrawLocalServerGUI() { GUILayout.Space(3); GUILayout.Label("-------------[AssetBundles Local Server]-------------"); GUILayout.Space(3); GUILayout.BeginHorizontal(); var curSelected = (LocalServerType)EditorGUILayout.EnumPopup("Local Server Type : ", localServerType, GUILayout.Width(300)); bool typeChanged = curSelected != localServerType; if (typeChanged) { PackageUtils.SaveLocalServerType(curSelected); localServerType = curSelected; localServerIP = PackageUtils.GetLocalServerIP(); } if (localServerType == LocalServerType.CurrentMachine) { GUILayout.Label(localServerIP); } else { localServerIP = GUILayout.TextField(localServerIP, GUILayout.Width(100)); if (GUILayout.Button("Save", GUILayout.Width(200))) { PackageUtils.SaveLocalServerIP(localServerIP); } } GUILayout.EndHorizontal(); }
public static string GetAssetBundleServerURL() { string ip = PackageUtils.GetLocalServerIP(); string downloadURL = "http://" + ip + ":7888/"; downloadURL = downloadURL + PackageUtils.GetCurPlatformChannelPath() + "/"; return(downloadURL); }
void OnEnable() { buildTarget = EditorUserBuildSettings.activeBuildTarget; channelType = PackageUtils.GetCurSelectedChannel(); localServerType = PackageUtils.GetLocalServerType(); localServerIP = PackageUtils.GetLocalServerIP(); }
public static string GetAssetBundleServerURL() { string ip = PackageUtils.GetLocalServerIP(); string downloadURL; // if (!ChannelManager.instance.IsInternalVersion()) // downloadURL = "http://" + ip + ":9090/MyFrame/";//iis 配置资源服务器,防火墙关掉http://10.53.2.86:9090/MyFrame/ // else // downloadURL = "https://abserver.oss-cn-beijing.aliyuncs.com/";//外网阿里云配置资源服务器 downloadURL = "http://" + ip + ":7888/";//本地起服务器 downloadURL = downloadURL + PackageUtils.GetCurPlatformChannelRelativePath() + "/"; return(downloadURL); }
void OnEnable() { buildTarget = EditorUserBuildSettings.activeBuildTarget; channelType = PackageUtils.GetCurSelectedChannel(); ReadLocalVersionFile(buildTarget, channelType); localServerType = PackageUtils.GetLocalServerType(); localServerIP = PackageUtils.GetLocalServerIP(); androidBuildABForPerChannel = PackageUtils.GetAndroidBuildABForPerChannelSetting(); iosBuildABForPerChannel = PackageUtils.GetIOSBuildABForPerChannelSetting(); }
void OnEnable() { buildTarget = EditorUserBuildSettings.activeBuildTarget; channelType = PackageUtils.GetCurSelectedChannel(); resVersion = ReadResVersionConfig(); bundleVersion = PlayerSettings.bundleVersion; localServerType = PackageUtils.GetLocalServerType(); localServerIP = PackageUtils.GetLocalServerIP(); androidBuildABForPerChannel = PackageUtils.GetAndroidBuildABForPerChannelSetting(); iosBuildABForPerChannel = PackageUtils.GetIOSBuildABForPerChannelSetting(); }
void DrawLocalServerGUI() { GUILayout.Space(3); GUILayout.Label("-------------[AssetBundles Local Server]-------------"); GUILayout.Space(3); EditorGUI.BeginChangeCheck(); useHTTPsServer = EditorGUILayout.ToggleLeft("Use HTTPs", useHTTPsServer); if (EditorGUI.EndChangeCheck()) { PackageUtils.SetHTTPsServerUsage(useHTTPsServer); } GUILayout.BeginHorizontal(); var curSelected = (LocalServerType)EditorGUILayout.EnumPopup("Local Server Type : ", localServerType, GUILayout.Width(300)); bool typeChanged = curSelected != localServerType; if (typeChanged) { PackageUtils.SaveLocalServerType(curSelected); localServerType = curSelected; localServerIP = PackageUtils.GetLocalServerIP(); localServerAddress = PackageUtils.GetServerAddressByType(localServerType); } if (localServerType == LocalServerType.CurrentMachine) { GUILayout.Label(localServerIP, GUILayout.Width(100)); localServerAddress = GUILayout.TextField(localServerAddress, GUILayout.Width(200)); if (GUILayout.Button("Save", GUILayout.Width(200))) { PackageUtils.SaveServerAddressByType(localServerType, localServerAddress); } } else { localServerIP = GUILayout.TextField(localServerIP, GUILayout.Width(100)); localServerAddress = GUILayout.TextField(localServerAddress, GUILayout.Width(200)); if (GUILayout.Button("Save", GUILayout.Width(200))) { PackageUtils.SaveLocalServerIP(localServerIP); PackageUtils.SaveServerAddressByType(localServerType, localServerAddress); } } GUILayout.EndHorizontal(); }
public static string GetAssetBundleServerURL() { string ip = PackageUtils.GetLocalServerIP(); string address = PackageUtils.GetServerAddressByType(PackageUtils.GetLocalServerType()); string downloadURL = null; if (PackageUtils.UseHTTPsServer()) { downloadURL = "https://" + ip + address; } else { downloadURL = "http://" + ip + address; } //downloadURL = downloadURL + PackageUtils.GetCurPlatformChannelRelativePath() + "/"; return(downloadURL); }