提交 212109ee 编写于 作者: T tanghai

1.Game.Close中EventSystem要在最后置空,否则Scene Dispose的时候会触发DestroySystem,再次new EventSystem

2.ComponentView在显示属性名字的时候去掉k__BackingField
上级 82e0a3df
......@@ -41,8 +41,10 @@
{
scene.Dispose();
scene = null;
eventSystem = null;
objectPool = null;
eventSystem = null;
}
}
}
\ No newline at end of file
......@@ -5,7 +5,6 @@ using ETModel;
using ILRuntime.Runtime.Intepreter;
using UnityEditor;
using UnityEngine;
using Component = ETModel.Component;
namespace ETEditor
{
......@@ -74,7 +73,12 @@ namespace ETEditor
continue;
}
value = typeDrawer.DrawAndGetNewValue(type, fieldInfo.Name, value, null);
string fieldName = fieldInfo.Name;
if (fieldName.Length > 17 && fieldName.Contains("k__BackingField"))
{
fieldName = fieldName.Substring(1, fieldName.Length - 17);
}
value = typeDrawer.DrawAndGetNewValue(type, fieldName, value, null);
fieldInfo.SetValue(obj, value);
break;
}
......
......@@ -46,13 +46,13 @@ namespace ETHotfix
public static void Close()
{
eventSystem = null;
scene?.Dispose();
scene = null;
objectPool?.Dispose();
objectPool = null;
eventSystem = null;
}
}
}
\ No newline at end of file
......@@ -56,8 +56,6 @@ namespace ETModel
public static void Close()
{
eventSystem = null;
scene?.Dispose();
scene = null;
......@@ -65,6 +63,8 @@ namespace ETModel
objectPool = null;
hotfix = null;
eventSystem = null;
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册