摘要:
ContentSizeFitter,自适应宽高脚本要在下一帧的时候才会适应宽高。如果想立即生效,可以调用 这里的rectTransform是当前物体的RectTransForm。 此处还有一个问题,就是如果是ContentSizeFitter嵌套,则需要刷新每一个RectTransForm 阅读全文
posted @ 2020-01-18 19:15
周董御用
阅读(6003)
评论(0)
推荐(0)
摘要:
unity ui中鼠标移进或者移出的触发方式与2d、3d的不同,2d、3d物体使用的是onmouseover,ui使用的是OnPointerEnter。需要实现以下两个接口。 原文出自unity官方论坛,详情可以查看https://forum.unity.com/threads/problem-wi 阅读全文
posted @ 2020-01-18 11:18
周董御用
阅读(2067)
评论(0)
推荐(0)

浙公网安备 33010602011771号