Chuyển tới nội dung chính

ProjectVHeaderCurrencyCatalogAsset class

Inspector asset that lists which currency each header slot shows. Create it from ProjectV/Backend V3/Header Currency Catalog, fill one row per slot, and assign it to the ProjectV presentation scope.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Header

public sealed class ProjectVHeaderCurrencyCatalogAsset : ScriptableObject

Methods​

Build()​

Turns the rows set in the Inspector into a header catalog; blank spaces around IDs are trimmed.

public ProjectVHeaderCurrencyCatalog Build();

Returns

ProjectVHeaderCurrencyCatalog: The catalog, in row order. Empty when no rows are set.

Exceptions

ExceptionWhen
InvalidOperationExceptionA row is empty.
ArgumentExceptionA row has a blank view key or currency ID, or two rows use the same view key.