摘要:
static void Main(string[] args) { int[] nums = new int[20]; Random r = new Random(); for (int i = 0; i < nums.Length; i++) { nums[i] = r.Next(0, 100); 阅读全文
摘要:
扩展编辑器实际上就是在unity菜单栏中添加一些按钮,可以一键执行一些重复性的工作。 一.添加按钮 1.简单使用MenuItem特性 using UnityEngine; using UnityEditor; public class Tools { [MenuItem("Tools/test")] 阅读全文