ugui记录
来源:互联网 发布:武汉软件新城,共几期 编辑:程序博客网 时间:2024/05/13 12:25
ugui用到了RectTransform,对ugui的操作 很多体现在RectTransform上:
RectTransform rectT = go.GetComponent<RectTransform>(); if (texture.width > texture.height) { rectT.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, originalWidth); rectT.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, texture.height * originalWidth / texture.width); }
RectTransform rectT = go.GetComponent<RectTransform>(); rectT.offsetMax = new Vector2(-170, tmpY);
RectTransform rectT = txt0.GetComponent<RectTransform>(); Vector3 vec = rectT.localPosition; rectT.localPosition = new Vector3(vec.x, -70, vec.z);
0 0
- ugui记录
- UGUI脚本记录
- UGUI学习记录
- UGUI中RectTRanform小细节记录
- UGUI
- UGUI
- UGUI
- UGUI
- UGUI
- UGUI
- UGUI
- UGUI
- ugui
- UGUI
- UGUI
- UGUI
- UGUI
- uGUI
- 浅析error LNK2001: unresolved external symbol "public: __thiscall
- poj2186
- 在水晶报表上添加BMP图片
- RFID安全问题——无完美的安全技术
- Android提高 - 浮动搜索框
- ugui记录
- Oracle导库,修改数据库文件
- fengxionghuaji
- java8之Lambda表达式 2:内建函数式接口
- TL-WR720N与OpenWrt(三)
- 【ExtJs】ExtJs的富文本编辑器
- 利用C语言创建和使用DLL文件
- 设计模式思考----单例模式
- [BZOJ 1509][NOI 2003]逃学的小孩(树的直径)