Spawn Sound at Location
Identifier
SpawnSoundAtLocation
Description
在指定位置上配置声源,播放Cue。
返回正在播放的AtomComponent,可以停止播放循环声音。
以本函数配置了的声源不追踪任何Actor。
UE4标准音频的UGameplayStatics::SpawnSoundAtLocation兼容的API。
(不同点在于播放的音频是播放的音频是AtomCueAsset。)
各参数的意思追踪UGamePlayStatics::SpawnSoundAtLocation函数。
Target is Atom Statics
nd_img_AtomStatics_SpawnSoundAtLocation.png
Inputs
Arg Description
In
Exec
Sound
Sound Atom Cue Object Reference
指定Atom Cue。
Location
Vector
指定配置声源的坐标。
Rotation
Rotator
指定旋转。
Volume Multiplier
Float
指定音量倍率。
Pitch Multiplier
Float
指定音高倍率。
Start Time
Float
通过在此指定开始时间(秒),可以从中途播放音频数据。
Attenuation Settings
Sound Attenuation Object Reference
指定Attenuation的设置。
Concurrency Settings
Sound Concurrency Object Reference
指定Concurrency的设置。
Auto Destroy
Boolean
指定播放完成时是否自动删除对象。
Outputs
Arg Description
Out
Exec
Return Value
Atom Component Object Reference
返回播放指定的Cue的AtomComponent的参照。