CatalogSearchParams

사용되지 않는 항목 표시

The CatalogSearchParams data type stores the parameters of a catalog search via AvatarEditorService:SearchCatalog().

When accessing the value of the CatalogSearchParams.BundleTypes or CatalogSearchParams.AssetTypes property the returned table will be read-only to avoid confusion when not directly accessing the CatalogSearchParams instance.

For example, you can use these properties as follows:


local params = CatalogSearchParams.new()
params.SearchKeyword = "Test"
params.MinPrice = 5000
params.MaxPrice = 10000
params.BundleTypes = {Enum.BundleType.Animations, Enum.BundleType.BodyParts}
local types = params.BundleTypes
for _, val in types do
print(val)
end
-- table.insert(types, Enum.BundleType.Animations) -- This would not work because the table is read only

요약

속성

속성

SearchKeyword

The keyword to search for catalog results with.

MinPrice

The minimum item price to search for.

0

MaxPrice

The maximum item price to search for.

기본값: 2147483647

The order in which to sort the results, represented by a Enum.CatalogSortType.

기본값: Enum.CatalogSortType.Relevance

The time period to use to aggregate the sort results by, represented by a Enum.CatalogCategoryFilter. This only applies when the sort type is Enum.CatalogSortType.MostFavorited or Enum.CatalogSortType.BestSelling. It does not apply for other sort types.

기본값: Enum.CatalogSortAggregation.AllTime

The category to filter the search by, represented by a Enum.CatalogCategoryFilter.

기본값: Enum.CatalogCategoryFilter.None

SalesTypeFilter

The sales type the search by, represented by a Enum.SalesTypeFilter.

기본값: Enum.SalesTypeFilter.All

An array containing Enum.BundleType values to filter the search by.

기본값: {}

An array containing Enum.AvatarAssetType values to filter the search by.

IncludeOffSale

Whether off sale items should be included in the results.

CreatorName

Search for items with the given creator.

Limit

Specifies the number of items to return. Accepts 10, 28, 30, 60, and 120. Defaults to 30.