摘要:
# 最简单的就是,直接将anchor先设为center-mid,然后再设置位置大小 public static void SetAnchoredPos(RectTransform rtf, float x, float y) { var v2Mid = Vector2.one * 0.5f; rtf 阅读全文
posted @ 2022-03-25 22:14
yanghui01
阅读(76)
评论(0)
推荐(0)
摘要:
#if UNITY_EDITOR using UnityEditor; public class MyToggleMenu { const string PrefsKey_IsAutoReloadXxx = "MyToggleMenu.IsAutoReloadXxx"; static int _is 阅读全文
posted @ 2022-03-25 21:49
yanghui01
阅读(51)
评论(0)
推荐(0)
摘要:
【math.random】 math.random() --返回一个[0, 1)之间的浮点数math.random(100) --返回一个[1, 100]间的整数math.random(1, 100) --返回一个[1, 100]间的整数math.random(20, 30) --返回一个[20, 阅读全文
posted @ 2022-03-25 21:37
yanghui01
阅读(207)
评论(0)
推荐(0)

浙公网安备 33010602011771号