mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
LocalizationTools支持Unity6
LocalizationTools支持Unity6
This commit is contained in:
@@ -724,7 +724,12 @@ namespace TEngine.Localization
|
|||||||
{
|
{
|
||||||
if (s_RecycledEditor==null)
|
if (s_RecycledEditor==null)
|
||||||
{
|
{
|
||||||
FieldInfo info = typeof(EditorGUI).GetField("s_RecycledEditor", BindingFlags.NonPublic | BindingFlags.Static);
|
#if UNITY_6000_0_OR_NEWER
|
||||||
|
FieldInfo info = typeof(EditorGUI).GetField("s_RecycledEditorInternal", BindingFlags.NonPublic | BindingFlags.Static);
|
||||||
|
#else
|
||||||
|
FieldInfo info = typeof(EditorGUI).GetField("s_RecycledEditor", BindingFlags.NonPublic | BindingFlags.Static);
|
||||||
|
#endif
|
||||||
|
|
||||||
s_RecycledEditor = info.GetValue(null);
|
s_RecycledEditor = info.GetValue(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user