# AvatarCreationService(ロブロックス クラス) > A service to support developer avatar creators. - URL:https://roblox.minecraft-okinawa.com/reference/classes/AvatarCreationService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/AvatarCreationService - 受け継いでいるクラス:Instance ## メソッド - `AvatarCreationService:AutoSetupAvatarAsync(player: Player, autoSetupParams: Dictionary, progressCallback: Function?): string`:Automatically sets up a custom Model and/or avatar accessories. - `AvatarCreationService:GenerateAvatar2DPreviewAsync(avatarGeneration2dPreviewParams: Dictionary, progressCallback: Function?): string`:Creates a 2D avatar preview and returns a previewId. - `AvatarCreationService:GenerateAvatarAsync(avatarGenerationParams: Dictionary, progressCallback: Function?): string`:Generates an avatar and returns a generationId. - `AvatarCreationService:GetBatchTokenDetailsAsync(tokenIds: Array): Array`:Gets the avatar creation token details for a list of avatar creation tokens at once. - `AvatarCreationService:GetValidationRules(): Dictionary`:Gets data regarding rules that assets must abide by to pass UGC validation. - `AvatarCreationService:LoadAvatar2DPreviewAsync(previewId: string): EditableImage`:Load an AvatarGeneration 2D preview on the client from a previewId. - `AvatarCreationService:LoadGeneratedAvatarAsync(generationId: string): HumanoidDescription`:Loads a generated avatar using an avatar generation ID. - `AvatarCreationService:PrepareAvatarForPreviewAsync(humanoidModel: Model): ()`:Prepares in-experience avatar for preview. - `AvatarCreationService:PromptCreateAvatarAssetAsync(tokenId: string, player: Player, assetInstance: Instance, assetType: AvatarAssetType): Tuple`:Prompts a Player to purchase and create an avatar asset from an Instance. - `AvatarCreationService:PromptCreateAvatarAsync(tokenId: string, player: Player, humanoidDescription: HumanoidDescription): Tuple`:Prompts a Player to purchase and create an avatar from a HumanoidDescription. - `AvatarCreationService:PromptCreateMakeupAsync(player: Player, makeupAssetEntries: Array, thumbnailHeadColor: Color3?): Tuple`:Prompts a Player to create and publish a makeup look from multiple makeup assets. - `AvatarCreationService:PromptSelectAvatarGenerationImageAsync(player: Player): string`:Prompt the Player to take a selfie and return the FileId. - `AvatarCreationService:RequestAvatarGenerationSessionAsync(player: Player, callback: Function): Tuple`:Request an AvatarGeneration session for a Player. - `AvatarCreationService:ValidateUGCAccessoryAsync(player: Player, accessory: Instance, accessoryType: AccessoryType): Tuple`:Studio only. Runs UGC validation for an AccessoryType. - `AvatarCreationService:ValidateUGCBodyPartAsync(player: Player, instance: Instance, bodyPart: BodyPart): Tuple`:Studio only. Runs UGC validation for an BodyPart. - `AvatarCreationService:ValidateUGCFullBodyAsync(player: Player, humanoidDescription: HumanoidDescription): Tuple`:Studio only. Runs UGC validation for a whole body. ## イベント - `AvatarCreationService.AvatarAssetModerationCompleted(assetId: int64, moderationStatus: ModerationStatus)`:Fires when an in-experience-created avatar asset's moderation status has been updated from pending. - `AvatarCreationService.AvatarOutfitModerationCompleted(outfitId: int64, moderationStatus: ModerationStatus, outfitType: OutfitType)`:Fires on the client when moderation completes for an in-experience-created outfit. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)