ListenerLocation列挙型(Enum)

列挙型(Enum)日本語解説は準備中

ひとことで言うと

ListenerLocationは、ロブロックス(Roblox)の列挙型(Enum)です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):Enum used with SoundService.DefaultListenerLocation to determine where an AudioListener is placed by default.

選べる値(4)

名前値説明
Enum.ListenerLocation.Default0Behavior 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.None1No AudioListener will be created by default, but they can be created separately by scripts.
Enum.ListenerLocation.Character2All 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.Camera3All 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)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む