배우기
엔진 클래스
AvatarEditorService
만들 수 없음
서비스

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


요약
메서드
CheckApplyDefaultClothing(humanoidDescription: HumanoidDescription):HumanoidDescription
사용되지 않음
ConformToAvatarRules(humanoidDescription: HumanoidDescription):HumanoidDescription
사용되지 않음
GetAvatarRules():Dictionary
사용되지 않음
GetBatchItemDetails(itemIds: {any},itemType: Enum.AvatarItemType):{any}
사용되지 않음
GetFavorite(itemId: number,itemType: Enum.AvatarItemType):boolean
사용되지 않음
GetInventory(assetTypes: {any}):InventoryPages
사용되지 않음
GetItemDetails(itemId: number,itemType: Enum.AvatarItemType):Dictionary
사용되지 않음
GetOutfitDetails(outfitId: number):Dictionary
사용되지 않음
GetOutfits(outfitSource: Enum.OutfitSource,outfitType: Enum.OutfitType):OutfitPages
사용되지 않음
GetRecommendedAssets(assetType: Enum.AvatarAssetType,contextAssetId: number):{any}
사용되지 않음
GetRecommendedBundles(bundleId: number):{any}
사용되지 않음
PromptCreateOutfit(outfit: HumanoidDescription,rigType: Enum.HumanoidRigType,outfitOptions: Dictionary,outfitType: Variant):()
PromptSetFavorite(itemId: number,itemType: Enum.AvatarItemType,shouldFavorite: boolean):()
SearchCatalog(searchParameters: CatalogSearchParams):CatalogPages
사용되지 않음
상속된 멤버

API 참조
메서드
CheckApplyDefaultClothing
사용되지 않음

CheckApplyDefaultClothingAsync
생성
기능: AvatarAppearance
AvatarEditorService:CheckApplyDefaultClothingAsync(humanoidDescription:HumanoidDescription):HumanoidDescription
매개 변수
humanoidDescription:HumanoidDescription

ConformToAvatarRules
사용되지 않음

ConformToAvatarRulesAsync
생성
기능: AvatarAppearance
AvatarEditorService:ConformToAvatarRulesAsync(humanoidDescription:HumanoidDescription):HumanoidDescription
매개 변수
humanoidDescription:HumanoidDescription

GetAccessoryType
AvatarEditorService:GetAccessoryType(avatarAssetType:Enum.AvatarAssetType):Enum.AccessoryType
매개 변수
avatarAssetType:Enum.AvatarAssetType

GetAvatarRules
사용되지 않음

GetAvatarRulesAsync
생성
AvatarEditorService:GetAvatarRulesAsync():Dictionary

GetBatchItemDetails
사용되지 않음

GetBatchItemDetailsAsync
생성
기능: AssetRead
AvatarEditorService:GetBatchItemDetailsAsync(
itemIds:{any}, itemType:Enum.AvatarItemType
매개 변수
itemIds:{any}
반환

GetBundlesByAssetIdAsync
생성
기능: AssetRead
AvatarEditorService:GetBundlesByAssetIdAsync(
assetId:number, limit:number
매개 변수
assetId:number
limit:number
기본값: 10

GetFavorite
사용되지 않음

GetFavoriteAsync
생성
기능: Players, AssetRead
AvatarEditorService:GetFavoriteAsync(
itemId:number, itemType:Enum.AvatarItemType
매개 변수
itemId:number
반환

GetHeadShapesAsync
생성
기능: Players, AssetRead
AvatarEditorService:GetHeadShapesAsync():{any}
반환
코드 샘플
소유한 머리 모양 가져오기
TEST
local AvatarEditorService = game:GetService("AvatarEditorService")
AvatarEditorService:PromptAllowInventoryReadAccess()
local result = AvatarEditorService.PromptAllowInventoryReadAccessCompleted:Wait()
if result == Enum.AvatarPromptResult.Success then
local shapes = AvatarEditorService:GetHeadShapesAsync()
for i, shape in ipairs(shapes) do
print(i, shape)
end
end

GetInventory
사용되지 않음

GetInventoryAsync
생성
기능: Players, AssetRead
AvatarEditorService:GetInventoryAsync(assetTypes:{any}):InventoryPages
매개 변수
assetTypes:{any}
코드 샘플
만료 예정 아이템 찾기
local AvatarEditorService = game:GetService("AvatarEditorService")
local pages = AvatarEditorService:GetInventoryAsync({ Enum.AvatarAssetType.Hat })
local currentPage = pages:GetCurrentPage()
for _, item in currentPage do
if item.ExpirationTime then
local secondsLeft = item.ExpirationTime.UnixTimestamp - DateTime.now().UnixTimestamp
local hoursLeft = math.floor(secondsLeft / 3600)
if hoursLeft < 24 then
warn(string.format("%s는 %d 시간 후 만료됩니다", item.Name, hoursLeft))
end
end
end

GetItemDetails
사용되지 않음

GetItemDetailsAsync
생성
기능: AssetRead
AvatarEditorService:GetItemDetailsAsync(
itemId:number, itemType:Enum.AvatarItemType
매개 변수
itemId:number
코드 샘플
아이템 만료 확인
local AvatarEditorService = game:GetService("AvatarEditorService")
local details = AvatarEditorService:GetItemDetailsAsync(105589844216517, Enum.AvatarItemType.Asset)
if details.ExpirationTime then
local secondsLeft = details.ExpirationTime.UnixTimestamp - DateTime.now().UnixTimestamp
local hoursLeft = math.floor(secondsLeft / 3600)
if hoursLeft < 24 then
warn(details.Name .. "은(는) 24시간 이내에 만료됩니다!")
end
end

GetOutfitDetails
사용되지 않음

GetOutfitDetailsAsync
생성
기능: AssetRead
AvatarEditorService:GetOutfitDetailsAsync(outfitId:number):Dictionary
매개 변수
outfitId:number

GetOutfits
사용되지 않음

GetOutfitsAsync
생성
기능: Players, AssetRead
AvatarEditorService:GetOutfitsAsync(
outfitSource:Enum.OutfitSource, outfitType:Enum.OutfitType
매개 변수
outfitSource:Enum.OutfitSource
기본값: "All"
outfitType:Enum.OutfitType
기본값: "All"

GetRecommendedAssets
사용되지 않음

GetRecommendedAssetsAsync
생성
기능: AssetRead
AvatarEditorService:GetRecommendedAssetsAsync(
assetType:Enum.AvatarAssetType, contextAssetId:number
매개 변수
contextAssetId:number
기본값: 0
반환
코드 샘플
모자 추천 받기
local AvatarEditorService = game:GetService("AvatarEditorService")
local assets = AvatarEditorService:GetRecommendedAssetsAsync(Enum.AvatarAssetType.Hat, 9255093)
for _, asset in ipairs(assets) do
print(asset.Item.Name)
end

GetRecommendedBundles
사용되지 않음

GetRecommendedBundlesAsync
생성
기능: AssetRead
AvatarEditorService:GetRecommendedBundlesAsync(bundleId:number):{any}
매개 변수
bundleId:number
반환

PromptAllowInventoryReadAccess
기능: Players, AssetRead
AvatarEditorService:PromptAllowInventoryReadAccess():()
반환
()

PromptCreateOutfit
기능: Players, PlatformAvatarEditing
AvatarEditorService:PromptCreateOutfit(
outfit:HumanoidDescription, rigType:Enum.HumanoidRigType, outfitOptions:Dictionary, outfitType:Variant
):()
매개 변수
outfitOptions:Dictionary
기본값: "nil"
outfitType:Variant
반환
()

PromptDeleteOutfit
기능: Players, PlatformAvatarEditing
AvatarEditorService:PromptDeleteOutfit(outfitId:number):()
매개 변수
outfitId:number
반환
()

PromptRenameOutfit
기능: Players, PlatformAvatarEditing
AvatarEditorService:PromptRenameOutfit(outfitId:number):()
매개 변수
outfitId:number
반환
()

PromptSaveAvatar
기능: Players, PlatformAvatarEditing
AvatarEditorService:PromptSaveAvatar(
humanoidDescription:HumanoidDescription, rigType:Enum.HumanoidRigType
):()
매개 변수
humanoidDescription:HumanoidDescription
반환
()

PromptSetFavorite
기능: Players, PlatformAvatarEditing
AvatarEditorService:PromptSetFavorite(
itemId:number, itemType:Enum.AvatarItemType, shouldFavorite:boolean
):()
매개 변수
itemId:number
shouldFavorite:boolean
반환
()

PromptUpdateOutfit
기능: Players, PlatformAvatarEditing
AvatarEditorService:PromptUpdateOutfit(
outfitId:number, updatedOutfit:HumanoidDescription, rigType:Enum.HumanoidRigType
):()
매개 변수
outfitId:number
updatedOutfit:HumanoidDescription
반환
()

SearchCatalog
사용되지 않음

SearchCatalogAsync
생성
기능: AssetRead
AvatarEditorService:SearchCatalogAsync(searchParameters:CatalogSearchParams):CatalogPages
매개 변수
searchParameters:CatalogSearchParams
코드 샘플
시간 제한 옵션이 있는 아이템 검색
local AvatarEditorService = game:GetService("AvatarEditorService")
local params = CatalogSearchParams.new()
params.SalesTypeFilter = Enum.SalesTypeFilter.TimedOptions
params.Limit = 10
local pages = AvatarEditorService:SearchCatalogAsync(params)
local results = pages:GetCurrentPage()
for _, item in results do
if item.TimedOptions then
for _, option in item.TimedOptions do
local days = option.Duration / 86400
print(string.format("%s: %d일, 가격: %d R$", item.Name, days, option.Price))
end
end
end

이벤트
PromptAllowInventoryReadAccessCompleted
기능: Players, AssetRead
AvatarEditorService.PromptAllowInventoryReadAccessCompleted(result:Enum.AvatarPromptResult):RBXScriptSignal
매개 변수

PromptCreateOutfitCompleted
기능: Players, PlatformAvatarEditing
AvatarEditorService.PromptCreateOutfitCompleted(
result:Enum.AvatarPromptResult, failureType:Variant
매개 변수
failureType:Variant

PromptDeleteOutfitCompleted
기능: Players, PlatformAvatarEditing
AvatarEditorService.PromptDeleteOutfitCompleted(result:Enum.AvatarPromptResult):RBXScriptSignal
매개 변수

PromptRenameOutfitCompleted
기능: Players, PlatformAvatarEditing
AvatarEditorService.PromptRenameOutfitCompleted(result:Enum.AvatarPromptResult):RBXScriptSignal
매개 변수

PromptSaveAvatarCompleted
기능: Players, PlatformAvatarEditing
AvatarEditorService.PromptSaveAvatarCompleted(
result:Enum.AvatarPromptResult, humanoidDescription:HumanoidDescription
매개 변수
humanoidDescription:HumanoidDescription

PromptSetFavoriteCompleted
기능: Players, PlatformAvatarEditing
AvatarEditorService.PromptSetFavoriteCompleted(result:Enum.AvatarPromptResult):RBXScriptSignal
매개 변수

PromptUpdateOutfitCompleted
기능: Players, PlatformAvatarEditing
AvatarEditorService.PromptUpdateOutfitCompleted(result:Enum.AvatarPromptResult):RBXScriptSignal
매개 변수

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.