AvatarEditorServiceクラス

クラスサービス(game:GetService("AvatarEditorService")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

AvatarEditorServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):A service to support developer Avatar Editors.

クラスの関係

受け継いでいるクラス:Object → Instance → AvatarEditorService

メソッド(22)

名前と書き方説明
CheckApplyDefaultClothingAsync
AvatarEditorService:CheckApplyDefaultClothingAsync(humanoidDescription: HumanoidDescription): HumanoidDescription
Used to apply default clothing to the HumanoidDescription if necessary.
ConformToAvatarRulesAsync
AvatarEditorService:ConformToAvatarRulesAsync(humanoidDescription: HumanoidDescription): HumanoidDescription
Returns a copy of the given HumanoidDescription that conforms to the platform Avatar rules.
GetAccessoryType
AvatarEditorService:GetAccessoryType(avatarAssetType: AvatarAssetType): AccessoryType
Returns the AccessoryType that corresponds to the given AvatarAssetType.
GetAvatarRulesAsync
AvatarEditorService:GetAvatarRulesAsync(): Dictionary
Returns the platform Avatar rules for things such as scaling, default shirts and pants, number of wearable assets.
GetBatchItemDetailsAsync
AvatarEditorService:GetBatchItemDetailsAsync(itemIds: Array, itemType: AvatarItemType): Array
Gets the item details for a list of items at once.
GetBundlesByAssetIdAsync
AvatarEditorService:GetBundlesByAssetIdAsync(assetId: int64, limit: int64): CatalogPages
Returns a CatalogPages object containing bundles that include the given asset.
GetFavoriteAsync
AvatarEditorService:GetFavoriteAsync(itemId: int64, itemType: AvatarItemType): boolean
Returns if the Players.LocalPlayer has favorited the given bundle or asset.
GetHeadShapesAsync
AvatarEditorService:GetHeadShapesAsync(): Array
Returns an array of head shape names that the Players.LocalPlayer owns.
GetInventoryAsync
AvatarEditorService:GetInventoryAsync(assetTypes: Array): InventoryPages
Returns an InventoryPages object with information about owned items in the users inventory with the given AvatarAssetTypes.
GetItemDetailsAsync
AvatarEditorService:GetItemDetailsAsync(itemId: int64, itemType: AvatarItemType): Dictionary
Returns the item details for the given item.
GetOutfitDetailsAsync
AvatarEditorService:GetOutfitDetailsAsync(outfitId: int64): Dictionary
Returns the outfit details for the given outfit.
GetOutfitsAsync
AvatarEditorService:GetOutfitsAsync(outfitSource: OutfitSource, outfitType: OutfitType): OutfitPages
Returns outfit data for the Players.LocalPlayer.
GetRecommendedAssetsAsync
AvatarEditorService:GetRecommendedAssetsAsync(assetType: AvatarAssetType, contextAssetId: int64): Array
Returns a list of recommended assets based on a given AssetType and asset ID.
GetRecommendedBundlesAsync
AvatarEditorService:GetRecommendedBundlesAsync(bundleId: int64): Array
Returns a list of recommended bundles for a given bundle id.
PromptAllowInventoryReadAccess
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.
PromptCreateOutfit
AvatarEditorService:PromptCreateOutfit(outfit: HumanoidDescription, rigType: HumanoidRigType, outfitOptions: Dictionary, outfitType: Variant): ()
Prompts the Players.LocalPlayer to save the given HumanoidDescription as an outfit.
PromptDeleteOutfit
AvatarEditorService:PromptDeleteOutfit(outfitId: int64): ()
Prompts the Players.LocalPlayer to delete the given outfit.
PromptRenameOutfit
AvatarEditorService:PromptRenameOutfit(outfitId: int64): ()
Prompts the Players.LocalPlayer to rename the given outfit.
PromptSaveAvatar
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.
PromptSetFavorite
AvatarEditorService:PromptSetFavorite(itemId: int64, itemType: AvatarItemType, shouldFavorite: boolean): ()
Prompts the Players.LocalPlayer to favorite or unfavorite the given asset or bundle.
PromptUpdateOutfit
AvatarEditorService:PromptUpdateOutfit(outfitId: int64, updatedOutfit: HumanoidDescription, rigType: HumanoidRigType): ()
Prompts the Players.LocalPlayer to update the given outfit.
SearchCatalogAsync
AvatarEditorService:SearchCatalogAsync(searchParameters: CatalogSearchParams): CatalogPages
Returns a CatalogPages object containing the result of the given search.

イベント(7)

名前と書き方説明
PromptAllowInventoryReadAccessCompleted
AvatarEditorService.PromptAllowInventoryReadAccessCompleted(result: AvatarPromptResult)
Fires when the Class.AvatarEditorService:PromptAllowInventoryReadAccess() prompt is responded to by the user.
PromptCreateOutfitCompleted
AvatarEditorService.PromptCreateOutfitCompleted(result: AvatarPromptResult, failureType: Variant)
Fires when the PromptSaveOutfit operation is completed.
PromptDeleteOutfitCompleted
AvatarEditorService.PromptDeleteOutfitCompleted(result: AvatarPromptResult)
Fires when the PromptDeleteOutfit operation is completed.
PromptRenameOutfitCompleted
AvatarEditorService.PromptRenameOutfitCompleted(result: AvatarPromptResult)
Fires when the PromptRenameOutfit operation is completed.
PromptSaveAvatarCompleted
AvatarEditorService.PromptSaveAvatarCompleted(result: AvatarPromptResult, humanoidDescription: HumanoidDescription)
Fires when the Class.AvatarEditorService:PromptSaveAvatar() operation is completed.
PromptSetFavoriteCompleted
AvatarEditorService.PromptSetFavoriteCompleted(result: AvatarPromptResult)
Fires when the Class.AvatarEditorService:PromptSetFavorite() operation is completed.
PromptUpdateOutfitCompleted
AvatarEditorService.PromptUpdateOutfitCompleted(result: AvatarPromptResult)
Fires when the Class.AvatarEditorService:PromptUpdateOutfit() operation is completed.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(AvatarEditorService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む