CatalogSearchParams don’t always seem to return correct results.
I am trying to get a collection of the classic avatar items, Shirts, Pants, and TShirts and am using these parameters to get them:
local searchparams = CatalogSearchParams.new()
searchparams.AssetTypes = {
Enum.AvatarAssetType.Shirt,
Enum.AvatarAssetType.Pants,
Enum.AvatarAssetType.TShirt
}
However when I perform AvatarEditorService:SearchCatalog() with those search parameters I get results filled with EmoteAnimations, BodyPart Bundles, TShirts, Shirts, and Pants.
Here is the code I used in the command bar to get those results in the output:
local searchparams = CatalogSearchParams.new()
searchparams.AssetTypes = {Enum.AvatarAssetType.Shirt, Enum.AvatarAssetType.Pants, Enum.AvatarAssetType.TShirt}
print(game.AvatarEditorService:SearchCatalog(searchparams):GetCurrentPage())
Some AvatarAssetTypes also return no values, like avatar limbs (even when IncludeNotForSale is true).
Expected behavior
AvatarAssetTypes, and BundleTypes that are not included in the search parameters should not be included in the result of SearchCatalog.