아이템
| 이름 | 값 | 요약 |
|---|---|---|
| InvalidName | 1 | |
| OutfitLimitReached | 2 | |
| Other | 3 |
코드 샘플
의상 생성 결과 처리
local AvatarEditorService = game:GetService("AvatarEditorService")
AvatarEditorService.PromptCreateOutfitCompleted:Connect(function(result, failureType)
if result == Enum.AvatarPromptResult.Success then
-- 의상이 생성되었습니다
elseif result == Enum.AvatarPromptResult.PermissionDenied then
-- 사용자가 프롬프트를 거부했습니다; failureType 무시
else -- Enum.AvatarPromptResult.Failed
if failureType == Enum.CreateOutfitFailure.OutfitLimitReached then
-- 사용자가 의상 한도에 도달했음을 알립니다
elseif failureType == Enum.CreateOutfitFailure.InvalidName then
-- 사용자가 다른 이름을 선택하라고 알립니다
else -- Enum.CreateOutfitFailure.Other
-- 일반적인 실패; 재시도하거나 일반 오류를 표시합니다
end
end
end)