为Button添加点击的声音
在创建好Button后,在给Button添加UIPlaySound脚本组件。
NGUI_为Button添加声音_010
AudioClip是选择声音的片段
Trigger是触发的方式
NGUI_为Button添加声音_010
Onclick 点击的时候触发
OnMouseOver 当鼠标在控件上方的时候触发
OnMouseOut 当鼠标离开控件的时候
OnPress当鼠标按下的时候触发
OnRelease当鼠标释放的时候触发
Custom自定义的时候
OnEnable 当控件**的时候
OnDisable当鼠标失活的时候触发
Volume声音大小
Pitch 播放的速度

相关文章:

  • 2021-06-03
  • 2022-01-15
  • 2021-08-08
  • 2021-04-07
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-11-17
  • 2021-11-20
相关资源
相似解决方案