Skip to main content

CategoryScrollManager

A class in Root.Township, Alta.Customization.

Customisation menu component holding the cosmetic categories the category scroller shows, filtered to those the player owns options for.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private PlayerCosmeticCategory[] availableCached result of GetAvailableCategories.
private PlayerCosmeticCategory[] categoriesAll categories set in the inspector.
private CosmeticCustomizationManager customizationManagerBacking field for CustomizationManager.
private IEnumerable<PlayerCosmeticDefinition> purchasedUnused in this build.
private Task refreshUnused in this build.

Properties​

MemberWhat it is
CosmeticCustomizationManager CustomizationManager { get; }The cosmetic customisation manager whose owned cosmetics decide which categories are available.

Methods​

MemberWhat it is
PlayerCosmeticCategory[] GetAllCategories()Every category set in the inspector.
PlayerCosmeticCategory[] GetAvailableCategories()Visible categories with at least one owned option. Worked out once and cached.

Used in​

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