luoyikun

导航

统计

06 2017 档案

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 阅读(1) 评论(0) 推荐(0) 编辑

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 阅读(1) 评论(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 阅读(23) 评论(0) 推荐(0) 编辑

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 阅读(24) 评论(0) 推荐(0) 编辑

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