com.alicizax.unity.ui.exten.../Runtime/RecyclerView/Navigation/RecyclerNavigationOptions.cs
陈思海 dc8c840d69 RecyclerView 大优化
优化RecycleView 渲染架构
优化RecyclerView 渲染性能 增加 缓存 异步
增加Navagation导航锚点相关
2026-03-31 15:18:50 +08:00

22 lines
660 B
C#

namespace AlicizaX.UI
{
public readonly struct RecyclerNavigationOptions
{
public static readonly RecyclerNavigationOptions Clamped = new(false, false, ScrollAlignment.Center);
public static readonly RecyclerNavigationOptions Circular = new(true, false, ScrollAlignment.Center);
public RecyclerNavigationOptions(bool wrap, bool smoothScroll, ScrollAlignment alignment)
{
Wrap = wrap;
SmoothScroll = smoothScroll;
Alignment = alignment;
}
public bool Wrap { get; }
public bool SmoothScroll { get; }
public ScrollAlignment Alignment { get; }
}
}