天天看點

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

繼續閱讀