UIButtonOffset
UIButtonOffset Class Reference
UIButtonOffset类引用
Simple example script of how a button can be offset visibly when the mouse hovers over it or it gets pressed.More...
当鼠标悬停在一个按钮之上或点击它时 按钮明显的偏移 的简单示例脚本。更多…
Public Attributes公共属性 | |
| Transform | tweenTarget |
| Vector3 | hover = Vector3.zero |
| Vector3 | pressed = new Vector3(2f, -2f) |
| float | duration = 0.2f |
Detailed Description
Simple example script of how a button can be offset 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/UIButtonOffset.cs
本文介绍了一个简单的Unity脚本UIButtonOffset,该脚本使按钮在鼠标悬停或被按下时发生可见的位移。通过TweenTarget变换及hover和pressed状态的Vector3设置实现效果。

594

被折叠的 条评论
为什么被折叠?



