update UIElements

pull/464/head
何冠峰 2025-02-07 18:47:05 +08:00
parent 31a0017351
commit e031498d5b
2 changed files with 12 additions and 6 deletions

View File

@ -9,12 +9,15 @@ namespace YooAsset.Editor
{
public class ResizeHandle : VisualElement
{
/// <summary>
/// Instantiates a TableView using data from a UXML file.
/// </summary>
#if UNITY_6000_0_OR_NEWER
public new class UxmlFactory : UxmlElementAttribute
{
}
#else
public new class UxmlFactory : UxmlFactory<ResizeHandle, UxmlTraits>
{
}
#endif
private bool _isResizing = false;
private float _initialWidth;

View File

@ -15,12 +15,15 @@ namespace YooAsset.Editor
/// </summary>
public class TableView : VisualElement
{
/// <summary>
/// Instantiates a TableView using data from a UXML file.
/// </summary>
#if UNITY_6000_0_OR_NEWER
public new class UxmlFactory : UxmlElementAttribute
{
}
#else
public new class UxmlFactory : UxmlFactory<TableView, UxmlTraits>
{
}
#endif
private readonly Toolbar _toolbar;
private readonly ListView _listView;