エンジン列挙型
CreateOutfitFailure
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
アイテム
| 名前 | 値 | 概要 |
|---|---|---|
| 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)