- 最后登录
- 2025-2-28
- 注册时间
- 2010-12-6
- 阅读权限
- 100
- 积分
- 14156
  
- 纳金币
- 76544
- 精华
- 23
|
添加SoundController.js脚本给Car游戏物体(从Scripts/JavaScripts中拖动到游戏物体上)。
Sound Controller成分针对音效有几个接口,因此我们可以赋予不同的音效文件。音效文件存放在Project视图Sound/Car中。拖动以下文件到相应接口。
![]()
oCarEngine_D_upper-register to the D slot.
Set the Volume to 0.565
CarEngine_E_midlow-register to the E
slot. Set the Volume to 0.8
CarEngine_F_midhigh-register to the F
slot. Set the Volume to 0.78
CarEngine_K_passing***sh to the K slot.
Set the Volume to 0.565
CarEngine_L_lower-register to the L slot. Set the Volume to 0.71
Wind-loop_stereo_22khz_16bit to the Wind slot. Set the to Volume 0.8
CarEngine_DEFL_tunnel-add_small to the Tunnel Sound slot. Set the Volume to 0.8
Collision1 to the Crash Low Speed Sound slot. Set the Volume to 0.8
Car_crash1_smaller to the Crash High Speed Sound slot. Set the Volume to 0.5
Car_skid1 to the Skid Sound slot
CarTutorialSong to the Background Music slot. Set the Volume to 1.
此处音量设置只是建议数值,用户可以尝试以不同的数值进行播放,以按照需求得到合适的数值。或者,可以更进一步针对音效设计自己的音量设置界面,这样就可以在游戏运行时调整音乐和音效的音量。web3D纳金网www.narkii.com |
|