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