AvatarEditorService
AvatarEditorService is a service to support developer Avatar Editors. It provides methods to modify the player's platform avatar, request information about a user's inventory, and request information about the catalog.
For more information regarding the Avatar Editor, see Avatar Editor Service.
Throttling
The following endpoints on AvatarEditorService have experience-level throttling:
For each experience, this throttling allows you to send up to 100 requests per second to these AvatarEditorService endpoints, regardless of the number of servers or user count. Exceeding these limits returns a 429 Too Many Requests error.
If you find that your experience requires an adjustment to this throttling, you can submit a feature request.
Summary
Methods
Used to apply default clothing to the HumanoidDescription if necessary.
Returns the platform Avatar rules for things such as scaling, default shirts and pants, number of wearable assets.
Gets the item details for a list of items at once.
Returns if the Players.LocalPlayer has favorited the given bundle or asset.
Returns an InventoryPages object with information about owned items in the users inventory with the given AvatarAssetTypes.
Returns the item details for the given item.
Returns the outfit details for the given outfit.
Returns outfit data for the Players.LocalPlayer.
Returns a list of recommended assets based on a given Enum.AssetType and asset ID.
Returns a list of recommended bundles for a given bundle id.
Prompts the Players.LocalPlayer to allow the developer to read what items the user has in their inventory and other avatar editor related information.
Prompts the Players.LocalPlayer to save the given HumanoidDescription as an outfit.
Prompts the Players.LocalPlayer to delete the given outfit.
Prompts the Players.LocalPlayer to rename the given outfit.
Prompts the Players.LocalPlayer to update their avatar based on the given HumanoidDescription and Enum.RigType of R6 or R15.
Prompts the Players.LocalPlayer to favorite or unfavorite the given asset or bundle.
- PromptUpdateOutfit(outfitId : number,updatedOutfit : HumanoidDescription,rigType : Enum.HumanoidRigType):()
Prompts the Players.LocalPlayer to update the given outfit.
Returns a CatalogPages object containing the result of the given search.
Events
Fires when the AvatarEditorService:PromptAllowInventoryReadAccess() prompt is responded to by the user.
Fires when the PromptSaveOutfit operation is completed.
Fires when the PromptDeleteOutfit operation is completed.
Fires when the PromptRenameOutfit operation is completed.
- PromptSaveAvatarCompleted(result : Enum.AvatarPromptResult,humanoidDescription : HumanoidDescription):RBXScriptSignal
Fires when the AvatarEditorService:PromptSaveAvatar() operation is completed.
Fires when the AvatarEditorService:PromptSetFavorite() operation is completed.
Fires when the AvatarEditorService:PromptUpdateOutfit() operation is completed.
Properties
Methods
CheckApplyDefaultClothing
Parameters
Returns
ConformToAvatarRules
Parameters
Returns
GetAccessoryType
Parameters
Returns
GetOutfits
Parameters
Returns
GetRecommendedAssets
Parameters
Returns
Code Samples
local AvatarEditorService = game:GetService("AvatarEditorService")
local assets = AvatarEditorService:GetRecommendedAssets(Enum.AvatarAssetType.Hat, 9255093)
for _, asset in ipairs(assets) do
print(asset.Item.Name)
end