跳转到内容
CRUSHFORMV1.1.0
在 Fab 上获取

参考设置

UCFEngineSettings

模块CrushformEngine头文件CFEngineSettings.h父类UDeveloperSettings

蓝图:Crushform Engine

项目级发动机声音:位于 Project Settings > Plugins > Crushform Engine。

函数

AUTHORITY · 服务器,每个端LOCAL · 本机PURE · 只读
const UCFEngineSettings* Get()
C++ ONLY

设置对象,只读。

属性

bool bEngineSound = true

发动机声音的总开关:关闭时,任何发动机都不会播放声音。在发动机声音开始播放时读取。

默认值
true
分类
Engine Sound
TSoftObjectPtr<UCFEngineSoundProfile> DefaultProfile

未指定配置文件的发动机声音所使用的配置文件(UCFEngineAudioComponent::Profile、UCFVehicleAdapterComponent::EngineSoundProfile)。

分类
Engine Sound
TSoftObjectPtr<USoundClass> SoundClass

发动机声音的声音类;为空时使用默认类(Master)。

分类
Engine Sound
float Priority = 0.5f

发动机声音的播放优先级,高于滚动声(Crushform Wheels)的优先级,因此声音较轻的轮胎会让位于发动机声。

默认值
0.5f
分类
Engine Sound
float CabinVolumeScale = 0.8f

在驾驶室内听到的发动机音量倍率(UCFVehicleAdapterComponent::SetCabinMuffled)。

默认值
0.8f
分类
Engine Sound
float CabinLowPassFrequency = 3000.f

在驾驶室内听到的发动机声的低通截止频率,单位 Hz。

默认值
3000.f
分类
Engine Sound