luoyikun

导航

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页

2018年9月22日 #

unity3d:定时任务封装类TimeManager

摘要: namespace Framework.Tools { /// <summary> /// 定时任务封装类 /// </summary> public class TimeTask { /// <summary> /// 延迟时间 /// </summary> private float _time 阅读全文

posted @ 2018-09-22 15:40 luoyikun 阅读(5) 评论(0) 推荐(0)

unity3d:ui跟着gameobject移动

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class UiFollowObj : MonoBehaviour { Transform m_trans; public Tr 阅读全文

posted @ 2018-09-22 14:50 luoyikun 阅读(13) 评论(0) 推荐(0)

2018年9月21日 #

unity3d:最简单的服务器,把收到消息发回客户端

摘要: using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Net.Sockets; using System.Net; using System.Threading; usi 阅读全文

posted @ 2018-09-21 16:15 luoyikun 阅读(8) 评论(0) 推荐(0)

2018年9月20日 #

c#:两个list不同元素,值类型,对象类型

摘要: 基本值类型 public static List<T> GetListDiff<T>(List<T> listA,List<T> listB) { List<T> ret = new List<T>(); if (listA.Count > listB.Count) ret = listA.Exce 阅读全文

posted @ 2018-09-20 16:33 luoyikun 阅读(20) 评论(0) 推荐(0)

2018年9月19日 #

unity3d:protobuf .java转.cs

摘要: 服务器端定义好protobuf结构,放unity编辑器中生成.cs的结构 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System.IO 阅读全文

posted @ 2018-09-19 10:48 luoyikun 阅读(5) 评论(0) 推荐(0)

2018年9月14日 #

unity3d:背景根据字缩放,往一个方向

摘要: unity3d:背景根据字缩放,往一个方向 阅读全文

posted @ 2018-09-14 14:51 luoyikun 阅读(4) 评论(0) 推荐(0)

2018年9月13日 #

unity3d:显示FPS

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class FPSShow : MonoBehaviour { private void OnGUI() { string te 阅读全文

posted @ 2018-09-13 13:53 luoyikun 阅读(5) 评论(0) 推荐(0)

2018年9月12日 #

unity3d:复制选中物体transform信息到剪切板

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class SaveTransInfo : EditorWindow { [MenuIte 阅读全文

posted @ 2018-09-12 19:22 luoyikun 阅读(25) 评论(0) 推荐(0)

Unity中解决JsonUtility转换数组失败的BUG

摘要: 由于转对象没问题,转数组才会产生问题。所以解决思路是: 转换时遇到数组,在数组外加壳,作为对象转成JSON,再去壳。 解析时遇到数组,先套壳转成对象,再取对象里的数组。 using System.Collections; using System.Collections.Generic; using 阅读全文

posted @ 2018-09-12 15:53 luoyikun 阅读(41) 评论(0) 推荐(0)

2018年9月7日 #

unity3d:ugui 每个字间隔间距

摘要: using UnityEngine; using System.Collections; using UnityEngine.UI; using System; using System.Collections.Generic; public class Line { private int _st 阅读全文

posted @ 2018-09-07 10:10 luoyikun 阅读(9) 评论(0) 推荐(0)

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页