# AvatarEditorService(ロブロックス クラス) > A service to support developer Avatar Editors. - URL:https://roblox.minecraft-okinawa.com/reference/classes/AvatarEditorService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/AvatarEditorService - 受け継いでいるクラス:Instance ## メソッド - `AvatarEditorService:CheckApplyDefaultClothingAsync(humanoidDescription: HumanoidDescription): HumanoidDescription`:Used to apply default clothing to the HumanoidDescription if necessary. - `AvatarEditorService:ConformToAvatarRulesAsync(humanoidDescription: HumanoidDescription): HumanoidDescription`:Returns a copy of the given HumanoidDescription that conforms to the platform Avatar rules. - `AvatarEditorService:GetAccessoryType(avatarAssetType: AvatarAssetType): AccessoryType`:Returns the AccessoryType that corresponds to the given AvatarAssetType. - `AvatarEditorService:GetAvatarRulesAsync(): Dictionary`:Returns the platform Avatar rules for things such as scaling, default shirts and pants, number of wearable assets. - `AvatarEditorService:GetBatchItemDetailsAsync(itemIds: Array, itemType: AvatarItemType): Array`:Gets the item details for a list of items at once. - `AvatarEditorService:GetBundlesByAssetIdAsync(assetId: int64, limit: int64): CatalogPages`:Returns a CatalogPages object containing bundles that include the given asset. - `AvatarEditorService:GetFavoriteAsync(itemId: int64, itemType: AvatarItemType): boolean`:Returns if the Players.LocalPlayer has favorited the given bundle or asset. - `AvatarEditorService:GetHeadShapesAsync(): Array`:Returns an array of head shape names that the Players.LocalPlayer owns. - `AvatarEditorService:GetInventoryAsync(assetTypes: Array): InventoryPages`:Returns an InventoryPages object with information about owned items in the users inventory with the given AvatarAssetTypes. - `AvatarEditorService:GetItemDetailsAsync(itemId: int64, itemType: AvatarItemType): Dictionary`:Returns the item details for the given item. - `AvatarEditorService:GetOutfitDetailsAsync(outfitId: int64): Dictionary`:Returns the outfit details for the given outfit. - `AvatarEditorService:GetOutfitsAsync(outfitSource: OutfitSource, outfitType: OutfitType): OutfitPages`:Returns outfit data for the Players.LocalPlayer. - `AvatarEditorService:GetRecommendedAssetsAsync(assetType: AvatarAssetType, contextAssetId: int64): Array`:Returns a list of recommended assets based on a given AssetType and asset ID. - `AvatarEditorService:GetRecommendedBundlesAsync(bundleId: int64): Array`:Returns a list of recommended bundles for a given bundle id. - `AvatarEditorService:PromptAllowInventoryReadAccess(): ()`:Prompts the Players.LocalPlayer to allow the developer to read what items the user has in their inventory and other avatar editor related information. - `AvatarEditorService:PromptCreateOutfit(outfit: HumanoidDescription, rigType: HumanoidRigType, outfitOptions: Dictionary, outfitType: Variant): ()`:Prompts the Players.LocalPlayer to save the given HumanoidDescription as an outfit. - `AvatarEditorService:PromptDeleteOutfit(outfitId: int64): ()`:Prompts the Players.LocalPlayer to delete the given outfit. - `AvatarEditorService:PromptRenameOutfit(outfitId: int64): ()`:Prompts the Players.LocalPlayer to rename the given outfit. - `AvatarEditorService:PromptSaveAvatar(humanoidDescription: HumanoidDescription, rigType: HumanoidRigType): ()`:Prompts the Players.LocalPlayer to update their avatar based on the given HumanoidDescription and HumanoidRigType of R6 or R15. - `AvatarEditorService:PromptSetFavorite(itemId: int64, itemType: AvatarItemType, shouldFavorite: boolean): ()`:Prompts the Players.LocalPlayer to favorite or unfavorite the given asset or bundle. - `AvatarEditorService:PromptUpdateOutfit(outfitId: int64, updatedOutfit: HumanoidDescription, rigType: HumanoidRigType): ()`:Prompts the Players.LocalPlayer to update the given outfit. - `AvatarEditorService:SearchCatalogAsync(searchParameters: CatalogSearchParams): CatalogPages`:Returns a CatalogPages object containing the result of the given search. ## イベント - `AvatarEditorService.PromptAllowInventoryReadAccessCompleted(result: AvatarPromptResult)`:Fires when the Class.AvatarEditorService:PromptAllowInventoryReadAccess() prompt is responded to by the user. - `AvatarEditorService.PromptCreateOutfitCompleted(result: AvatarPromptResult, failureType: Variant)`:Fires when the PromptSaveOutfit operation is completed. - `AvatarEditorService.PromptDeleteOutfitCompleted(result: AvatarPromptResult)`:Fires when the PromptDeleteOutfit operation is completed. - `AvatarEditorService.PromptRenameOutfitCompleted(result: AvatarPromptResult)`:Fires when the PromptRenameOutfit operation is completed. - `AvatarEditorService.PromptSaveAvatarCompleted(result: AvatarPromptResult, humanoidDescription: HumanoidDescription)`:Fires when the Class.AvatarEditorService:PromptSaveAvatar() operation is completed. - `AvatarEditorService.PromptSetFavoriteCompleted(result: AvatarPromptResult)`:Fires when the Class.AvatarEditorService:PromptSetFavorite() operation is completed. - `AvatarEditorService.PromptUpdateOutfitCompleted(result: AvatarPromptResult)`:Fires when the Class.AvatarEditorService:PromptUpdateOutfit() operation is completed. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)