Rect.OverLaps() 改进
解决 scale、pivot 改变后 检测不准确问题
using UnityEngine;
public static class ExpTool
{
static Rect rect = new Rect();
static float x, y, width, height;
static Vector2 center;
public static Rect GetRect(this RectTransform self, float offsetScale
原创
2021-06-23 15:13:49 ·
645 阅读 ·
0 评论