diff --git a/Assets/YooAsset/Editor/UIElements/ElementsDefine/PanelSplitView.cs b/Assets/YooAsset/Editor/UIElements/ElementsDefine/PanelSplitView.cs index 85ccead2..f90023ee 100644 --- a/Assets/YooAsset/Editor/UIElements/ElementsDefine/PanelSplitView.cs +++ b/Assets/YooAsset/Editor/UIElements/ElementsDefine/PanelSplitView.cs @@ -12,15 +12,9 @@ namespace YooAsset.Editor /// public class PanelSplitView : TwoPaneSplitView { -#if UNITY_6000_0_OR_NEWER - public new class UxmlFactory : UxmlElementAttribute - { - } -#else public new class UxmlFactory : UxmlFactory { } -#endif /// /// 竖版分屏 diff --git a/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs b/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs index adae4675..504d532e 100644 --- a/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs +++ b/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs @@ -9,15 +9,9 @@ namespace YooAsset.Editor { public class ResizeHandle : VisualElement { -#if UNITY_6000_0_OR_NEWER - public new class UxmlFactory : UxmlElementAttribute - { - } -#else public new class UxmlFactory : UxmlFactory { } -#endif private bool _isResizing = false; private float _initialWidth; diff --git a/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs b/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs index 4c632e9f..37bf1ccf 100644 --- a/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs +++ b/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs @@ -15,15 +15,9 @@ namespace YooAsset.Editor /// public class TableView : VisualElement { -#if UNITY_6000_0_OR_NEWER - public new class UxmlFactory : UxmlElementAttribute - { - } -#else public new class UxmlFactory : UxmlFactory { } -#endif private readonly Toolbar _toolbar; private readonly ListView _listView;