ListenerLocation列挙型(Enum)
列挙型(Enum)日本語解説は準備中
ひとことで言うと
ListenerLocationは、ロブロックス(Roblox)の列挙型(Enum)です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Enum used with SoundService.DefaultListenerLocation to determine where an AudioListener is placed by default.
選べる値(4)
| 名前 | 値 | 説明 |
|---|---|---|
Enum.ListenerLocation.Default | 0 | Behavior depends on the value of VoiceChatService.EnableDefaultVoice and VoiceChatService.UseAudioApi. When using the default voice setup with the audio API, this behaves similarly to Camera. |
Enum.ListenerLocation.None | 1 | No AudioListener will be created by default, but they can be created separately by scripts. |
Enum.ListenerLocation.Character | 2 | All of the following, resulting in the world being heard from the position of your character while matching the orientation of your camera. - An Attachment will be created and parented to the Class.Model.PrimaryPart|PrimaryPart of the local player's Class.Player.Character|Character model. - An AudioListener will be created and parented to the Attachment. - An AudioDeviceOutput will be created and parented to SoundService. - A Wire will be created and parented to the previously-created AudioListener. The wire's Class.Wire.SourceInstance|SourceInstance will be set to the previously-created AudioListener and its Class.Wire.TargetInstance|TargetInstance will be set to the previously-created AudioDeviceOutput. - The previously-created Attachment will be updated once per frame to face the same direction as Workspace.CurrentCamera. |
Enum.ListenerLocation.Camera | 3 | All of the following, resulting in the world being heard from the perspective (postition and orientation) of the camera. - An AudioListener will be created and parented to Workspace.CurrentCamera. - An AudioDeviceOutput will be created and parented to SoundService. - A Wire will be created and parented to the previously-created AudioListener. The wire's Class.Wire.SourceInstance|SourceInstance will be set to the previously-created AudioListener and its Class.Wire.TargetInstance|TargetInstance will be set to the previously-created AudioDeviceOutput. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(ListenerLocation)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。