Skip to main content

CosmeticScrollSource

A class in Root.Township, Alta.Customization.

Holds the list of cosmetic hashes a customisation scroll list shows, and raises an event when it changes. Read by ScrollManager and CosmeticScrollElement.

Constructors​

MemberWhat it is
CosmeticScrollSource()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private List<uint> itemsBacking field for Items.

Properties​

MemberWhat it is
List<uint> Items { get; set; }Cosmetic hashes to show. Setting it raises ItemsChanged.

Events​

MemberWhat it is
event Action ItemsChangedRaised when Items is replaced or OnItemsChanged is called.

Methods​

MemberWhat it is
void OnItemsChanged()Raises ItemsChanged. Call it after editing the list in place.

Used in​

Members of other types that take, return or hold a CosmeticScrollSource: