Fixed editor window display exception at unity2021
修复工具界面显示异常在Unity2021版本下。
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#if UNITY_2019_4
|
||||
|
||||
namespace YooAsset.Editor
|
||||
{
|
||||
#if UNITY_2019
|
||||
public static partial class UnityEngine_UIElements_ListView_Extension
|
||||
{
|
||||
public static void ClearSelection(this UnityEngine.UIElements.ListView o)
|
||||
@@ -8,5 +9,15 @@ namespace YooAsset.Editor
|
||||
o.selectedIndex = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if UNITY_2019 || UNITY_2020
|
||||
public static partial class UnityEngine_UIElements_ListView_Extension
|
||||
{
|
||||
public static void Rebuild(this UnityEngine.UIElements.ListView o)
|
||||
{
|
||||
o.Refresh();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user