摘要:
效果图 代码: using UnityEngine; using System.Collections.Generic; using System; /// <summary> /// 划线面积,距离,角度 /// </summary> public class UnderlinedMeasureT 阅读全文
摘要:
实现效果如下: 我们这里鼠标点击使用的是圆点的预制体,大家可以根据自己项目需求制作预制体 点击两个点可以测出两个点之间的距离,并计算总长度 实现代码如下: using System.Collections; using System.Collections.Generic; using UnityE 阅读全文
摘要:
首先得创建一个读取ini配置文件的基类,创建好一个后,后面项目需要都可以直接拿来用了 创建基类得引用命名空间 System.Runtime.InteropServices 下面为基类代码: public class MyIni { public string path;//ini文件的路径 publ 阅读全文