From e031498d5b1ef55b9dc40926686b66afc536a1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Fri, 7 Feb 2025 18:47:05 +0800 Subject: [PATCH] update UIElements --- .../Editor/UIElements/ElementsDefine/ResizeHandle.cs | 9 ++++++--- Assets/YooAsset/Editor/UIElements/TableView/TableView.cs | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs b/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs index 87e4280a..adae4675 100644 --- a/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs +++ b/Assets/YooAsset/Editor/UIElements/ElementsDefine/ResizeHandle.cs @@ -9,12 +9,15 @@ namespace YooAsset.Editor { public class ResizeHandle : VisualElement { - /// - /// Instantiates a TableView using data from a UXML file. - /// +#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 fdc4ec4b..99a6787e 100644 --- a/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs +++ b/Assets/YooAsset/Editor/UIElements/TableView/TableView.cs @@ -15,12 +15,15 @@ namespace YooAsset.Editor /// public class TableView : VisualElement { - /// - /// Instantiates a TableView using data from a UXML file. - /// +#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;