2022-10-09 03:25:56 +08:00
|
|
|
using UnityEditorInternal;
|
|
|
|
using UnityEngine;
|
|
|
|
namespace HybridCLR.Editor
|
|
|
|
{
|
2022-10-09 20:53:13 +08:00
|
|
|
[FilePath("ProjectSettings/HybridCLRSettings.asset")]
|
|
|
|
public class HybridCLRSettings : ScriptableSingleton<HybridCLRSettings>
|
2022-10-09 03:25:56 +08:00
|
|
|
{
|
|
|
|
[Header("开启HybridCLR插件")]
|
|
|
|
public bool enable = true;
|
|
|
|
|
2022-10-09 20:53:13 +08:00
|
|
|
[Header("使用全局安装的il2cpp")]
|
|
|
|
public bool useGlobalIl2cpp;
|
|
|
|
|
2022-10-09 03:25:56 +08:00
|
|
|
[Header("从gitee clone插件代码")]
|
|
|
|
public bool cloneFromGitee = true; // false 则从github上拉取
|
|
|
|
|
2022-10-09 20:53:13 +08:00
|
|
|
[Header("热更新Assembly Definitions")]
|
2022-10-09 03:25:56 +08:00
|
|
|
public AssemblyDefinitionAsset[] hotUpdateAssemblyDefinitions;
|
|
|
|
|
|
|
|
[Header("热更新dlls")]
|
|
|
|
public string[] hotUpdateAssemblies;
|
|
|
|
|
|
|
|
[Header("自动扫描生成的link.xml路径")]
|
|
|
|
public string outputLinkFile = "HybridCLRData/Generated/link.xml";
|
|
|
|
|
|
|
|
[Header("自动扫描生成的AOTGenericReferences.cs路径")]
|
|
|
|
public string outputAOTGenericReferenceFile = "HybridCLRData/Generated/AOTGenericReferences.cs";
|
|
|
|
|
|
|
|
[Header("AOT泛型实例化搜索迭代次数")]
|
2022-10-14 11:44:30 +08:00
|
|
|
public int maxGenericReferenceIteration = 10;
|
2022-10-09 03:25:56 +08:00
|
|
|
|
|
|
|
[Header("预留MonoPInvokeCallbackAttribute函数个数")]
|
|
|
|
public int ReversePInvokeWrapperCount = 10;
|
|
|
|
|
|
|
|
[Header("MethodBridge泛型搜索迭代次数")]
|
2022-10-14 11:44:30 +08:00
|
|
|
public int maxMethodBridgeGenericIteration = 10;
|
2022-10-09 03:25:56 +08:00
|
|
|
}
|
|
|
|
}
|