エンジンクラス
Dialog
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
概要
プロパティ
方法
GetCurrentPlayers():Instances |
イベント
DialogChoiceSelected(player: Instance,dialogChoice: Instance):RBXScriptSignal |
APIリファレンス
プロパティ
方法
GetCurrentPlayers
Dialog:GetCurrentPlayers():Instances
戻り値
Instances
コードサンプル
ダイアログ:現在のプレイヤーを取得
local dialog = script.Parent
local function onChoiceSelected(_player, _choice)
local currentPlayers = dialog:GetCurrentPlayers()
print("ダイアログ内の現在のプレイヤー:")
for _, player in ipairs(currentPlayers) do
print(player)
end
end
dialog.DialogChoiceSelected:Connect(onChoiceSelected)イベント
DialogChoiceSelected