mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[fix] 移除 BuildDLLCommand
构造函数以尝试解决数组被清除的问题
This commit is contained in:
@@ -93,7 +93,6 @@ public static class EventInterfaceGenerate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorUtility.SetDirty(HybridCLRSettings.Instance);
|
|
||||||
AssetDatabase.Refresh();
|
AssetDatabase.Refresh();
|
||||||
Debug.Log("Generate EventInterface Complete");
|
Debug.Log("Generate EventInterface Complete");
|
||||||
// EditorUtility.DisplayDialog("提示", "代码生成完毕", "OK");
|
// EditorUtility.DisplayDialog("提示", "代码生成完毕", "OK");
|
||||||
|
@@ -6,20 +6,10 @@ using TEngine.Editor;
|
|||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
[InitializeOnLoad]
|
|
||||||
public static class BuildDLLCommand
|
public static class BuildDLLCommand
|
||||||
{
|
{
|
||||||
private const string EnableHybridClrScriptingDefineSymbol = "ENABLE_HYBRIDCLR";
|
private const string EnableHybridClrScriptingDefineSymbol = "ENABLE_HYBRIDCLR";
|
||||||
|
|
||||||
static BuildDLLCommand()
|
|
||||||
{
|
|
||||||
#if ENABLE_HYBRIDCLR
|
|
||||||
HybridCLR.Editor.SettingsUtil.Enable = true;
|
|
||||||
#else
|
|
||||||
HybridCLR.Editor.SettingsUtil.Enable = false;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 禁用HybridCLR宏定义。
|
/// 禁用HybridCLR宏定义。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user