NGUI v2.0 Interaction_8_9:UIButtonScale UI按钮缩放类 || UIButtonSound UI按钮声音类

UIButtonScale

 

 

UIButtonScale Class Reference

UIButtonScale类引用

Simple example script of how a button can be scaled visibly when the mouse hovers over it or it gets pressed.More...

当鼠标悬停在一个按钮之上或点击它时   按钮明显的缩放    的简单示例脚本。更多…

 

List of all members.

Public Attributes公共属性

Transform tweenTarget
Vector3 hover = new Vector3(1.1f, 1.1f, 1.1f)
Vector3 pressed = new Vector3(1.05f, 1.05f, 1.05f)
float duration = 0.2f

Detailed Description详细描述

Simple example script of how a button can be scaled visibly when the mouse hovers over it or it gets pressed.

当鼠标悬停在一个按钮之上或点击它时   按钮明显的缩放    的简单示例脚本。


The documentation for this class was generated from the following file:
  • Assets/NGUI/Scripts/Interaction/UIButtonScale.cs

 

 

 

 

 

UIButtonSound

 

 

UIButtonSound Class Reference

UIButtonSound类引用

Plays the specified sound. More...

播放指定的声音。更多…

List of all members.

Public Types公共类型

enum  Trigger

Public Attributes公共属性

AudioClip audioClip
Trigger trigger = Trigger.OnClick
float volume = 1f

Detailed Description详细描述

Plays the specified sound. 播放指定的声音。


The documentation for this class was generated from the following file:
  • Assets/NGUI/Scripts/Interaction/UIButtonSound.cs
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值