luoyikun

导航

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

2017年7月6日 #

u3d打字机效果

摘要: using UnityEngine; using System.Collections; using UnityEngine.UI; public class Typewriter : MonoBehaviour { float fSpeed = 0.1f; Text Showtext; strin 阅读全文

posted @ 2017-07-06 11:03 luoyikun 阅读(13) 评论(0) 推荐(0)

2017年6月8日 #

u3d 两个同样obj查找子物体

摘要: using UnityEngine; using System.Collections; using System.Collections.Generic; using DG.Tweening; public class Test : MonoBehaviour { public GameObjec 阅读全文

posted @ 2017-06-08 00:19 luoyikun 阅读(3) 评论(0) 推荐(0)

2017年6月7日 #

u3d 递归输出子孙物体相对总父物体的路径

摘要: string GetParName(Transform tran) { if (tran.parent == m_tar.transform) { return tran.name; } else { return GetParName(tran.parent)+"/"+tran.name; } } 阅读全文

posted @ 2017-06-07 23:57 luoyikun 阅读(2) 评论(0) 推荐(0)

u3d DoTween子物体回到原位

摘要: using UnityEngine; using System.Collections; using System.Collections.Generic; using DG.Tweening; public class Test : MonoBehaviour { public GameObjec 阅读全文

posted @ 2017-06-07 23:16 luoyikun 阅读(38) 评论(0) 推荐(0)

2017年6月6日 #

u3d保存RenderTexture为Png

摘要: using UnityEngine; using System.Collections; using System.IO; public class SaveToPng : MonoBehaviour { public RenderTexture inputTex; public void save 阅读全文

posted @ 2017-06-06 22:37 luoyikun 阅读(38) 评论(0) 推荐(0)

2017年5月26日 #

u3d与安卓交互(Android studio)

摘要: AndroidStudio导出 .jar文件,在Unity里使用 开发环境:as2.3.2.0,u3d5.6.0 as部分: 1.新建工程时的最低版本跟u3d中相同 2.Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\mono\R 阅读全文

posted @ 2017-05-26 00:11 luoyikun 阅读(19) 评论(0) 推荐(0)

2017年5月18日 #

Git 遇到了 early EOF index-pack failed 问题

摘要: fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed git config --global --add core.compression -1 阅读全文

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

u3d拖动摄像机视角与双指缩放

摘要: using UnityEngine; using System.Collections; public class CamMove : MonoBehaviour { private float m_xSpeed = 250.0f; private float m_ySpeed = 120.0f; 阅读全文

posted @ 2017-05-18 11:43 luoyikun 阅读(24) 评论(0) 推荐(0)

u3d物体跟随摄像头旋转角度

摘要: void Update () { Quaternion rotation = Quaternion.LookRotation(transform.forward - m_arCam.transform.forward); transform.rotation = Quaternion.Lerp(tr 阅读全文

posted @ 2017-05-18 11:33 luoyikun 阅读(9) 评论(0) 推荐(0)

u3d协程控制匀速旋转角度

摘要: 点击红色圈后,实现选中plane旋转至人物正前方 第一步:首先获取选中plane与正前方的夹角 float AngleGet(Vector3 from, Vector3 to) { Vector3 v3 = Vector3.Cross(from, to); if (v3.y > 0) return 阅读全文

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

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