From 2902b6c2cfbc7054d2c7c8df5f360e18afca5561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Fri, 14 Feb 2025 11:29:13 +0800 Subject: [PATCH] fix #472 --- .../Editor/UIElements/ElementsDefine/PanelSplitView.cs | 6 ------ .../Editor/UIElements/ElementsDefine/ResizeHandle.cs | 6 ------ Assets/YooAsset/Editor/UIElements/TableView/TableView.cs | 6 ------ 3 files changed, 18 deletions(-) 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;