修改buildwindow
parent
7369003bb5
commit
5a98b903a1
File diff suppressed because it is too large
Load Diff
|
@ -7,12 +7,13 @@ using System.Linq;
|
|||
using GameEditor.Core;
|
||||
using GameEditor.GameEditor.PlayerBuilder;
|
||||
using GameLogic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics;
|
||||
using ResUpdate;
|
||||
using GameCore;
|
||||
using System.Net;
|
||||
|
||||
namespace GameEditor.FrameTool {
|
||||
namespace GameEditor.FrameTool
|
||||
{
|
||||
public class BuildWindow : EditorWindow
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -38,12 +39,12 @@ namespace GameEditor.FrameTool {
|
|||
[MenuItem("Build/BuildWindow")]
|
||||
static void Init()
|
||||
{
|
||||
|
||||
|
||||
// Get existing open window or if none, make a new one:
|
||||
BuildWindow window = (BuildWindow)EditorWindow.GetWindow(typeof(BuildWindow));
|
||||
window.Show();
|
||||
window.InitWindow();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void InitWindow()
|
||||
|
@ -138,8 +139,8 @@ namespace GameEditor.FrameTool {
|
|||
//SaveVersionFile();
|
||||
}
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (GUILayout.Button("资源合法性检查", GUILayout.Height(40f)))
|
||||
{
|
||||
|
@ -164,7 +165,7 @@ namespace GameEditor.FrameTool {
|
|||
FrameTool.BuildGameAssetBundles();
|
||||
|
||||
//拷贝AssetBundle到流媒体目录
|
||||
if (isCopyABSToStreamingAssets)
|
||||
if (isCopyABSToStreamingAssets)
|
||||
{
|
||||
FrameTool.CopyAssetBundleToStreamingAssets();
|
||||
//SaveVersionFile();
|
||||
|
@ -225,7 +226,7 @@ namespace GameEditor.FrameTool {
|
|||
/// <summary>
|
||||
/// 导出XCODE工程
|
||||
/// </summary>
|
||||
void ExportXcode()
|
||||
void ExportXcode()
|
||||
{
|
||||
PlayerBuilder.BuildXCode();
|
||||
}
|
||||
|
@ -233,7 +234,7 @@ namespace GameEditor.FrameTool {
|
|||
/// <summary>
|
||||
/// 是否导出APK
|
||||
/// </summary>
|
||||
void ExportApk()
|
||||
void ExportApk()
|
||||
{
|
||||
PlayerBuilder.BuildApk();
|
||||
}
|
||||
|
@ -316,9 +317,10 @@ namespace GameEditor.FrameTool {
|
|||
if (!string.IsNullOrEmpty(path) && File.Exists(path))
|
||||
{
|
||||
File.WriteAllText(path, json);
|
||||
}else
|
||||
}
|
||||
else
|
||||
{
|
||||
UnityEngine.Debug.Log("未找到目标路径:"+path);
|
||||
UnityEngine.Debug.Log("未找到目标路径:" + path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -365,7 +367,14 @@ namespace GameEditor.FrameTool {
|
|||
{
|
||||
for (int i = 0; i < m_Files.Length; i++)
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
m_Choose[i] = EditorGUILayout.ToggleLeft(Path.GetFileNameWithoutExtension(m_Files[i]), m_Choose[i]);
|
||||
i++;
|
||||
if (i < m_Files.Length)
|
||||
{
|
||||
m_Choose[i] = EditorGUILayout.ToggleLeft(Path.GetFileNameWithoutExtension(m_Files[i]), m_Choose[i]);
|
||||
}
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue