AudioListener

사용되지 않는 항목 표시
찾아볼 수 없음

AudioListener records an audio stream from its surrounding AudioEmitters in the 3D world. It provides a single Output pin which can be connected to other pins via Wires. If the parent is an Attachment, Camera, or PVInstance, the parent's world CFrame will be used for listening. If the parent is not one of these classes, the AudioListener effectively hears nothing.

코드 샘플

Camera Listener

local listener = Instance.new("AudioListener")
local output = Instance.new("AudioDeviceOutput")
local wire = Instance.new("Wire")
listener.Parent = workspace.Camera
wire.Parent = listener
output.Parent = wire
wire.SourceInstance = listener
wire.TargetInstance = output

속성

AudioInteractionGroup

병렬 읽기

Controls which AudioEmitters are audible to this AudioListener. Emitters that share an interaction group can be heard by this Listener.

DistanceAttenuation

BinaryString
병렬 읽기
Roblox 보안

메서드

GetConnectedWires

매개 변수

pin: string

반환

GetDistanceAttenuation


반환

GetInteractingEmitters


반환

SetDistanceAttenuation

void

매개 변수

curve: Dictionary

반환

void

이벤트