luoyikun

导航

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页

2017年11月27日 #

Vuforia打开关闭摄像机

摘要: // 关闭相机 public void CloseCameraDevice() { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); } // 打开相机 public void OpenCameraDevice() { Cam 阅读全文

posted @ 2017-11-27 21:29 luoyikun 阅读(19) 评论(0) 推荐(0)

2017年11月23日 #

c#ppt转换为序列png

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Core; using Microsoft.Office.Interop.Powe 阅读全文

posted @ 2017-11-23 11:22 luoyikun 阅读(8) 评论(0) 推荐(0)

unity3d 文件批量转为UTF8

摘要: 使用visual studio创建一个控制台程序 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sys 阅读全文

posted @ 2017-11-23 10:29 luoyikun 阅读(20) 评论(0) 推荐(0)

2017年10月19日 #

unity 确定与取消对话框

摘要: UnityEvent本质上是继承自UnityEventBase的类,它的AddListener()方法能够注册UnityAction,RemoveListener能够取消注册UnityAction,还有Invoke()方法能够一次性调用所有注册了的UnityAction。 对话框代码 using S 阅读全文

posted @ 2017-10-19 23:41 luoyikun 阅读(17) 评论(0) 推荐(0)

2017年9月9日 #

c# IComparer比较字符串

摘要: 例如:幻灯片50,幻灯片6,幻灯片40 排序完后:幻灯片6,幻灯片40,幻灯片50 public class PathCompare : IComparer<string> { public int Compare(string x, string y) { string[] aBuf = x.Sp 阅读全文

posted @ 2017-09-09 21:09 luoyikun 阅读(11) 评论(0) 推荐(0)

2017年8月30日 #

U3D观察者模式,实现1对多

摘要: 观察者类 using UnityEngine; using System.Collections; using System.Collections.Generic; public class Notification { /// <summary> /// 通知发送者 /// </summary> 阅读全文

posted @ 2017-08-30 21:18 luoyikun 阅读(10) 评论(0) 推荐(0)

2017年8月21日 #

u3d www json http

摘要: using LitJson; using System.Collections; using UnityEngine; public class MessageJson { public bool status; public string data; public string code; } p 阅读全文

posted @ 2017-08-21 19:20 luoyikun 阅读(8) 评论(0) 推荐(0)

2017年7月21日 #

Unity3D 触摸拖拽效果

摘要: 在游戏制作或者应用制作中,鼠标或者触摸屏操作必不可少,像武器装备,从背包中把武器拖向人物属性,这个过程在Unity中没有相应的StarDarg、StopDrag方法。但是继承与MonoBehaviour却有一个OnMouseDrag事件,这样我们也可以模拟拖拽的效果了。 查看效果,需要把此脚本拖放到 阅读全文

posted @ 2017-07-21 16:01 luoyikun 阅读(51) 评论(0) 推荐(0)

2017年7月14日 #

unity3d给子物体添加MeshCollider

摘要: using UnityEngine; using System.Collections; public class AutoAddCollision : MonoBehaviour { // Use this for initialization void Start () { ModelAddMe 阅读全文

posted @ 2017-07-14 09:45 luoyikun 阅读(25) 评论(0) 推荐(0)

u3d 控制animation播放速度

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class AniSpeed : MonoBehaviour { Animation m_ani; public float m 阅读全文

posted @ 2017-07-14 09:42 luoyikun 阅读(23) 评论(0) 推荐(0)

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页