お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close名前により識別された、利用可能なマイクデバイスの一覧
// Get list of Microphone devices and print the names to the log function Start () { for (var device in Microphone.devices) { Debug.Log("Name: " + device); } }
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Start() { foreach (string device in Microphone.devices) { Debug.Log("Name: " + device); } } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Start() as void: for device as string in Microphone.devices: Debug.Log(('Name: ' + device))
See Also: Start, End, IsRecording.