![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UGUI
dazhi51
这个作者很懒,什么都没留下…
展开
-
UGUI渐变字
渐变字颜色 每个字是2个面,4个顶点,左上为1,右上为2,左下为3,右下为4 第二个字是左上为5,右上为六 using UnityEngine; using UnityEngine.UI; namespace UnityEditor.UI { // TODO REVIEW // Make Text Gradient // /// /// Editor class原创 2015-05-19 10:51:17 · 924 阅读 · 0 评论 -
UGUI学习笔记
1 Canvas 画布 Overlay UI永远在最前面 分辨率改变画布自动改变 canvas不能移动,改变 Camera 画布放在camera前的一个指定距离上,画布会随camera field改变 canvas不能移动改变 WorldSpace 可手动改变画布的大小和位置 UI元素可以呈现在3D物体的前或后 Canvas 在 Camera 和Worl原创 2015-05-19 10:46:10 · 882 阅读 · 0 评论 -
UGUI 获得点击物体
if(Input.GetMouseButtonDown(0)){ PointerEventData eventData = new PointerEventData(EventSystem.current); eventData.position = new Vector2(Input.mousePosition.x, Input.mousePositi原创 2015-06-06 10:45:37 · 1099 阅读 · 0 评论 -
ContentSizeFitter 偏移
ugui原创 2015-05-23 17:34:29 · 2821 阅读 · 0 评论 -
使用UGUI自定义五边形
using UnityEngine; using System.Collections.Generic; using UnityEngine.UI;/* * * 3 8 * * * 4 0 7 * * * 1 2 5 6 * * * */public class UIPropWid转载 2016-01-12 11:29:52 · 1326 阅读 · 0 评论 -
图文混排
using UnityEngine; using System.Collections; using System.Collections.Generic;using System.Text.RegularExpressions;using UnityEngine.UI;public enum WidgetType{ Text, Image }public class WidgetR原创 2015-07-22 10:35:01 · 341 阅读 · 0 评论 -
UI分辨率
兼容ipad 2:3 不兼容16:9 1152*768 1366*768 高度适配转载 2017-02-07 11:45:29 · 412 阅读 · 0 评论