• Manual
  • API Documentation
Show / Hide Table of Contents
  • UnlimitedScrollUI
    • Alignment
    • AnimationType
    • BecomeInvisibleEvent
    • BecomeVisibleEvent
    • GenerateEvent
    • GridUnlimitedScroller
    • HorizontalUnlimitedScroller
    • ICell
    • IUnlimitedScroller
    • JumpToMethod
    • RegularCell
    • ScrollerPanelSide
    • VerticalUnlimitedScroller
  • UnlimitedScrollUI.Editor
    • GridUnlimitedScrollerEditor
    • HorizontalUnlimitedScrollerEditor
    • VerticalUnlimitedScrollerEditor

Class GridUnlimitedScroller

Inheritance
Object
GridUnlimitedScroller
Implements
IUnlimitedScroller
Namespace: UnlimitedScrollUI
Assembly: cs.temp.dll.dll
Syntax
public class GridUnlimitedScroller : GridLayoutGroup, IUnlimitedScroller

Fields

cacheSize

Max size of cached cells.

Declaration
public uint cacheSize
Field Value
Type Description
UInt32

cellPerRow

Cell Count per row if not match Content width.

Declaration
public int cellPerRow
Field Value
Type Description
Int32

horizontalAlignment

Declaration
public Alignment horizontalAlignment
Field Value
Type Description
Alignment

matchContentWidth

Match cell per row to the width of Content. If set, cellPerRow will be ignored.

Declaration
public bool matchContentWidth
Field Value
Type Description
Boolean

scrollRect

The ScrollRect component on ScrollView.

Declaration
public ScrollRect scrollRect
Field Value
Type Description
ScrollRect

Properties

CellPerRow

The calculated real number of cells per row or columns count.

Declaration
public int CellPerRow { get; }
Property Value
Type Description
Int32

ContentHeight

The height of the content.

Declaration
public float ContentHeight { get; }
Property Value
Type Description
Single

ContentWidth

The width of the content.

Declaration
public float ContentWidth { get; }
Property Value
Type Description
Single

FirstCol

The first visible column.

Declaration
public int FirstCol { get; }
Property Value
Type Description
Int32

FirstRow

The first visible row.

Declaration
public int FirstRow { get; }
Property Value
Type Description
Int32

Generated

Whether this scroller has initialized and generate cells.

Declaration
public bool Generated { get; }
Property Value
Type Description
Boolean

Initialized

Whether this scroller has initialized.

Declaration
public bool Initialized { get; }
Property Value
Type Description
Boolean

LastCol

The last visible column.

Declaration
public int LastCol { get; }
Property Value
Type Description
Int32

LastRow

The last visible row.

Declaration
public int LastRow { get; }
Property Value
Type Description
Int32

RowCount

Total row count.

Declaration
public int RowCount { get; }
Property Value
Type Description
Int32

ViewportHeight

The height of the viewport.

Declaration
public float ViewportHeight { get; }
Property Value
Type Description
Single

ViewportWidth

The width of the viewport.

Declaration
public float ViewportWidth { get; }
Property Value
Type Description
Single

Methods

Clear()

Clear all cells including cache.

Declaration
public void Clear()

ClearCache()

Clear all cached cells. This will not change the cache size.

Declaration
public void ClearCache()

Generate(GameObject, Int32, Action<Int32, ICell>)

Call this function to initialize and generate cells.

Declaration
public void Generate(GameObject newCell, int newTotalCount, Action<int, ICell> onGenerate)
Parameters
Type Name Description
GameObject newCell

The cell game object.

Int32 newTotalCount

The total cell count you want to generate.

Action<Int32, ICell> onGenerate

The delegate when the cell is generated, you can initialize cell data here.

JumpTo(UInt32, JumpToMethod)

Declaration
public void JumpTo(uint index, JumpToMethod method)
Parameters
Type Name Description
UInt32 index
JumpToMethod method

SetCacheSize(UInt32)

Set a new caching size. If smaller than current cache size, cache will be trimmed to the new size

Declaration
public void SetCacheSize(uint newSize)
Parameters
Type Name Description
UInt32 newSize

New cache size.

Implements

IUnlimitedScroller
In This Article
Back to top Generated by DocFX