[change] 禁用HybridCLR时不再复制裁剪后的AOT dll
[new] SettingsUtil.Enable 支持setter,允许代码中修改开启状态。
parent
1a23268b03
commit
2effa79f6d
|
|
@ -57,6 +57,11 @@ namespace HybridCLR.Editor.BuildProcessors
|
|||
|
||||
public static void CopyStripDlls(string srcStripDllPath, BuildTarget target)
|
||||
{
|
||||
if (!SettingsUtil.Enable)
|
||||
{
|
||||
Debug.Log($"[CopyStrippedAOTAssemblies] disabled");
|
||||
return;
|
||||
}
|
||||
Debug.Log($"[CopyStrippedAOTAssemblies] CopyScripDlls. src:{srcStripDllPath} target:{target}");
|
||||
|
||||
var dstPath = SettingsUtil.GetAssembliesPostIl2CppStripDir(target);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,15 @@ namespace HybridCLR.Editor
|
|||
{
|
||||
public static class SettingsUtil
|
||||
{
|
||||
public static bool Enable => HybridCLRSettings.Instance.enable;
|
||||
public static bool Enable
|
||||
{
|
||||
get => HybridCLRSettings.Instance.enable;
|
||||
set
|
||||
{
|
||||
HybridCLRSettings.Instance.enable = value;
|
||||
HybridCLRSettings.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public static string PackageName { get; } = "com.focus-creative-games.hybridclr_unity";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.focus-creative-games.hybridclr_unity",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"displayName": "HybridCLR",
|
||||
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
|
||||
"category": "Runtime",
|
||||
|
|
|
|||
Loading…
Reference in New Issue