Unity UGUI 的RectTransform参数的设置
来源:互联网 发布:软件算无形资产吗 编辑:程序博客网 时间:2024/05/18 17:41
1.改变RectTransform的top
GetComponent<RectTransform>().offsetMax = new Vector2(GetComponent<RectTransform>().offsetMax.x, top);
2.改变RectTransform的bottom
GetComponent<RectTransform>().offsetMin = new Vector2(GetComponent<RectTransform>().offsetMin.x, bottom);
3.改变RectTransform的width,height
GetComponent<RectTransform>().sizeDelta = new Vector2(width, height);
4.改变RectTransform的pos
GetComponent<RectTransform>().anchoredPosition3D = new Vector3(posx,posy,posz);
GetComponent<RectTransform>().anchoredPosition = new Vector2(posx,posy);
阅读全文
0 0
- Unity UGUI 的RectTransform参数的设置
- Unity UGUI 的RectTransform参数的设置
- U3D 新UI系统UGUI 的recttransform一些参数的设置
- UGUI 计算RectTransform的Bounds
- 【Unity】UGUI中RectTransform中Top和Bottom的设置,宽和高的设置,以及postion和锚点的设置
- 【Unity】UGUI怎么计算RectTransform中的Top和Bottom的值
- 关于UGUI RectTransform的几个参数的获取和修改(待补充)
- Unity UGUI 原理篇(三):RectTransform
- Unity UGUI 原理篇(三):RectTransform
- ugui在运行时改变RectTransform的大小
- ugui在运行时改变RectTransform的大小
- 关于UGUI中RectTransform组件的获取问题
- Unity3D UGUI组件的Inspector属性探究(一)--RectTransform
- UGUI - RectTransform
- UGUI RectTransform
- unity3d 4.6RectTransform 的一些设置
- Unity学习笔记(4) --- Unity的界面排版: RectTransform
- 【UGUI】uGUI RectTransform
- 软碟通UltraISO 9.65.3237 【官方版+ 注册码】
- 《大型分布式网站架构设计与实践》——常见的Web攻击手段
- 视频质量分析系统VC
- HDU 6127 Hard challenge (几何)
- hadoop 二次排序join的实现
- Unity UGUI 的RectTransform参数的设置
- django 和 mysql 的连接 MySQL 查看表结构简单命令
- 聊聊操作系统-文件系统
- 原生JS封装Ajax
- 神经网络训练之数据归一化处理
- 基于CentOS搭建FTP文件服务
- 安卓开发踩坑整理
- hdu1857 畅通工程再续
- JSP与Servlet传值及对比