luoyikun

导航

统计

12 2018 档案

unity3d:向量计算,摄像机与目标位置
摘要:目标与摄像头,摄像头重新出现在两者连线方向的距离目标10m处 Vector3 oldPos = transform.position; Vector3 dir = oldPos - pos; Vector3 newPos = pos + dir.normalized * 10; transform. 阅读全文

posted @ 2018-12-30 14:03 luoyikun 阅读(17) 评论(0) 推荐(0) 编辑

unity3d:url下载头像保存在本地(微信头像)
摘要:using UnityEngine; using UnityEngine.UI; using System.Collections; using System.IO; using System.Collections.Generic; public class AsyncImageDownload 阅读全文

posted @ 2018-12-27 17:20 luoyikun 阅读(45) 评论(0) 推荐(0) 编辑

unity3d:折线图,读取csv数据,每s生成一段线
摘要:1.读取csv表数据,点的数据随机,在3000以上 2.x方向,y方向的最大值根据表读取 3.每1s显示当前的点的数据 using System.Collections; using System.Collections.Generic; using SpringGUI; using UnityEn 阅读全文

posted @ 2018-12-20 10:48 luoyikun 阅读(20) 评论(0) 推荐(0) 编辑

unity3d:物体出现在摄像机后
摘要:using Framework.Event; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ModelVisible : MonoBehaviour { publ 阅读全文

posted @ 2018-12-12 11:07 luoyikun 阅读(3) 评论(0) 推荐(0) 编辑

c#正则表达式,电话号码,密码字母与数字组合
摘要:1.是否是电话号码 public static bool IsPhoneOK(string num) { if (num.Length < 11) { return false; } //电信手机号码正则 string dianxin = @"^1[3578][01379]\d{8}$"; Rege 阅读全文

posted @ 2018-12-07 13:39 luoyikun 阅读(34) 评论(0) 推荐(0) 编辑

unity3d:时间管理(1):服务器时间同步
摘要:using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class SyncTime : MonoBehaviour { public static Dat 阅读全文

posted @ 2018-12-07 09:52 luoyikun 阅读(41) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示