Uinty的uGUI学习(02):Image(图片)、button(按钮)
2017-04-22 00:00
211 查看
#####一、uGUI - Image
图片导入已什么样的样式导入
2.等比例调节大小
#####二、uGUI - button
![](http://upload-images.jianshu.io/upload_images/1090284-a160a2bca3b30eb2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
(图片)
图片导入已什么样的样式导入
(Texture Type)
nGUI导入 : Editor GUI and Legacy GUI uGUI导入作为精灵或者UI使用 : Sprite(2D and UI) 显示的大小 : Max Size 压缩样式 : Format (tureColor:不会进行压缩) 应用(导入) : Apply
选中图片同时按住shift键来进行拖动
锚点:Anchors 中心点:Pivot 旋转:Rotation 放大:Scale 属性 画布渲染:Canvas Renderer 源图像:Source Image 颜色:Color 材料:Meterial Raycast Target ImageType 维护方面 : Preserve Aspect 设置图片本身(原有)的大小 : Set Native Size
#####二、uGUI - button
(按钮)
锚点:Anchors 中心点:Pivot 旋转:Rotation 放大:Scale >>> Image(Script) 图像脚本>>> 画布渲染:Canvas Renderer Source Image Color Material Raycast Target Image Type(切图:Sliced) Fill Center >>> Button(Script) 图像脚本>>> 交互:Interactable 状态转变的(默认 Color Tint):Transition /* 可以设置图片:sprite Swap 设置动画:animation 生成一个状态机(生成一个动画):auto Generate Animation */ 目标图形:Target Graphic 正常的颜色:Normal Color 高亮颜色:Highlighted Colior 按颜色:Pressed Color 禁用颜色:Disabled Color 颜色倍增器(颜色的亮度):Color Multiplier 衰落持续时间(中间的动画转变时间):Fade Duration 导航:Navigation 点击事件:On Click()
![](http://upload-images.jianshu.io/upload_images/1090284-a160a2bca3b30eb2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](http://upload-images.jianshu.io/upload_images/1090284-36153ce4cf42b88d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
相关文章推荐
- andoid点击按钮(ImageButton)时改变按钮的背景图片 SelectorDemo
- Android——滚动视图(ScrollView)图片视图(ImageView)、状态开关按钮(ToggleButton)、时钟
- Android 笔记:ImageButton单击切换按钮图片效果的实现(转)
- Android ImageButton单击切换按钮图片效果
- ASP.NET中ImageButton图片按钮控件的使用
- ASP.NET中ImageButton图片按钮控件的使用
- Android ImageButton Example 图片按钮
- Asp.net ImageButton 根据编辑表单类型显示不同按钮图片
- ImageButton点击按钮改变图片
- 在ImageView上添加Button并为图片做填充和为Button按钮设置透明度
- 会闪光的按钮Button和图片ImageView,ProgressBar进度条颜色闪动
- Android——图片视图(ImageView)、状态开关按钮(ToggleButton)、时钟、图片透明度、滚动和时间选择器
- iOS开发-button setImage按钮不显示图片问题
- ext.ux.ImageButton的用法(图片按钮)
- Android ImageButton Example 图片按钮
- android ImageButton响应不规则图片
- Android UI Design 02 : 基本按钮 Button
- HTML Button 背景图片样式作为按钮显示
- 按钮的背景图片变换。。。。(button移动到上面的时候是手型,几个去除链接/按钮虚线框的方法 )
- 给button等按钮和控件加背景色或者图片,dialog如何增加背景色和图片背景