[fix] 修复2019的不兼容编译错误
parent
ef83fca9a0
commit
2899d13d60
|
@ -26,7 +26,7 @@ namespace HybridCLR.Editor
|
||||||
HybridCLRSettings.Instance.Save();
|
HybridCLRSettings.Instance.Save();
|
||||||
var setting = HybridCLRSettings.Instance;
|
var setting = HybridCLRSettings.Instance;
|
||||||
setting.hideFlags &= ~HideFlags.NotEditable;
|
setting.hideFlags &= ~HideFlags.NotEditable;
|
||||||
m_SerializedObject ??= new SerializedObject(setting);
|
m_SerializedObject = m_SerializedObject ?? new SerializedObject(setting);
|
||||||
m_Enable = m_SerializedObject.FindProperty("enable");
|
m_Enable = m_SerializedObject.FindProperty("enable");
|
||||||
m_UseGlobalIl2cpp = m_SerializedObject.FindProperty("useGlobalIl2cpp");
|
m_UseGlobalIl2cpp = m_SerializedObject.FindProperty("useGlobalIl2cpp");
|
||||||
m_CloneFromGitee = m_SerializedObject.FindProperty("cloneFromGitee");
|
m_CloneFromGitee = m_SerializedObject.FindProperty("cloneFromGitee");
|
||||||
|
@ -42,7 +42,7 @@ namespace HybridCLR.Editor
|
||||||
{
|
{
|
||||||
base.OnTitleBarGUI();
|
base.OnTitleBarGUI();
|
||||||
var rect = GUILayoutUtility.GetLastRect();
|
var rect = GUILayoutUtility.GetLastRect();
|
||||||
buttonStyle ??= GUI.skin.GetStyle("IconButton");
|
buttonStyle = buttonStyle ?? GUI.skin.GetStyle("IconButton");
|
||||||
|
|
||||||
#region 绘制官方网站跳转按钮
|
#region 绘制官方网站跳转按钮
|
||||||
var w = rect.x + rect.width;
|
var w = rect.x + rect.width;
|
||||||
|
@ -135,7 +135,7 @@ namespace HybridCLR.Editor
|
||||||
{
|
{
|
||||||
var provider = new HybridCLRSettingsProvider
|
var provider = new HybridCLRSettingsProvider
|
||||||
{
|
{
|
||||||
keywords = GetSearchKeywordsFromSerializedObject(m_SerializedObject ??= new SerializedObject(HybridCLRSettings.Instance))
|
keywords = GetSearchKeywordsFromSerializedObject(m_SerializedObject = m_SerializedObject ?? new SerializedObject(HybridCLRSettings.Instance))
|
||||||
};
|
};
|
||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,9 @@ namespace HybridCLR.Editor
|
||||||
Undo.RecordObject(m_Target, "Cancel Preset");
|
Undo.RecordObject(m_Target, "Cancel Preset");
|
||||||
m_InitialValue.ApplyTo(m_Target);
|
m_InitialValue.ApplyTo(m_Target);
|
||||||
}
|
}
|
||||||
|
#if UNITY_2020_1_OR_NEWER
|
||||||
SettingsService.RepaintAllSettingsWindow();
|
SettingsService.RepaintAllSettingsWindow();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
public override void OnSelectionClosed(Preset selection)
|
public override void OnSelectionClosed(Preset selection)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.focus-creative-games.hybridclr_unity",
|
"name": "com.focus-creative-games.hybridclr_unity",
|
||||||
"version": "0.3.8",
|
"version": "0.3.9",
|
||||||
"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