随笔分类 -  Unity&Script

摘要:原地址:http://blog.csdn.net/mobanchengshuang/article/details/27591271好久没有敲Blog了,谢谢大家的留言、关注、私信等支持,但是我好像已经没有办法让自己继续写以前的博客系列了,因为我发现网上关于unity3D的内容太少了,所以我无法自拔... 阅读全文
posted @ 2014-07-24 12:54 ing... 阅读(1160) 评论(0) 推荐(0)
摘要:原地址:http://tieba.baidu.com/p/3032649566?fr=ala0&pstaala=2一般来说,使用相同材质的模型的各个子网格,可以合并为一个网格,以大大地减少DrawCall,如果一个模型中子网格很多并且使用不同材质,也可以合并,只不过是合并成一个渲染对象的子网格和材质... 阅读全文
posted @ 2014-07-18 09:13 ing... 阅读(636) 评论(0) 推荐(0)
摘要:using unityEngine;using System.Collections;using System.Linq;using System.Xml.Linq;using System;public class XML {//static string xmlpath = Applicatio... 阅读全文
posted @ 2014-07-15 09:01 ing... 阅读(308) 评论(0) 推荐(0)
摘要:void Update (){ if(Input.GetMouseButton(1)) { if (axes == RotationAxes.MouseXAndY) { // Read the mouse input axis rotationX += Input.GetAx... 阅读全文
posted @ 2014-07-05 12:36 ing... 阅读(503) 评论(0) 推荐(0)
摘要:原地址:http://blog.csdn.net/asd237241291/article/details/8433548创文章如需转载请注明:转载自 脱莫柔Unity3D学习之旅 QQ群:【119706192】 本文链接地址: Unity3D 批量图片资源导入设置复制代码using UnityE... 阅读全文
posted @ 2014-06-30 10:42 ing... 阅读(662) 评论(0) 推荐(0)
摘要:3.xx 以上 绑定到UIRootusing UnityEngine;namespace Com.Xyz.UI{ [ExecuteInEditMode] [RequireComponent(typeof(UIRoot))] public class UIScreenAdaptive... 阅读全文
posted @ 2014-06-30 09:27 ing... 阅读(279) 评论(0) 推荐(0)
摘要:if (Directory.Exists(path)) { string[] name = Directory.GetFiles(path); foreach (string item in name) { ... 阅读全文
posted @ 2014-06-26 11:48 ing... 阅读(145) 评论(0) 推荐(0)
摘要:说到有关dllimport方法可能还有很多人比较陌生,其实我自己也说不太清楚,大概说说什么时候要用它。事实上功能类似于调用android的第三包,我们想要使用苹果上特定的api或者第三方平台的一些东西(现在很少第三方平台会为unity做独立的插件吧),我们就会用到这个叫dllimport的功能。今天... 阅读全文
posted @ 2014-06-20 15:20 ing... 阅读(6911) 评论(0) 推荐(0)
摘要:using UnityEngine;using UnityEditor;using System;public class AutoSave : EditorWindow { private bool autoSaveScene = true; private bool showMess... 阅读全文
posted @ 2014-06-18 09:52 ing... 阅读(314) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;public class CubeStatic : MonoBehaviour{ public float minFov = 15f; public float maxFov = 90f; pub... 阅读全文
posted @ 2014-06-05 07:07 ing... 阅读(152) 评论(0) 推荐(0)
摘要:using UnityEditor;public class MyEditor : AssetPostprocessor{ public void OnPreprocessModel() { ModelImporter modelImporter = (ModelImpor... 阅读全文
posted @ 2014-06-04 09:32 ing... 阅读(235) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;// 直接放在相机上,控制相机的旋转和缩放 //public class CameraContro : MonoBehaviour { public Transform target; ... 阅读全文
posted @ 2014-05-25 06:25 ing... 阅读(200) 评论(0) 推荐(0)
摘要:原地址:http://blog.csdn.net/u011440375/article/details/9707491因为最近工作用NGUI比较多,修改图集时还没原图,有时候需要把图集重新切割开来,用代码会比较方便,一下贴出主要代码首先读取NGUI图集的信息[csharp] view plainco... 阅读全文
posted @ 2014-05-11 21:53 ing... 阅读(489) 评论(0) 推荐(0)
摘要:Unity时钟定时器插件——Vision Timer源码分析之二By D.S.Qiu尊重他人的劳动,支持原创,转载请注明出处:http.dsqiu.iteye.com 前面的已经介绍了vp_Timer(点击前往查看),vp_TimeUtility相对简单很多,vp_TimeUtility定义了个... 阅读全文
posted @ 2014-05-03 11:38 ing... 阅读(992) 评论(0) 推荐(0)
摘要:Unity时钟定时器插件——Vision Timer源码分析之一By D.S.Qiu尊重他人的劳动,支持原创,转载请注明出处:http.dsqiu.iteye.com 因为项目中,UI的所有模块都没有MonBehaviour类(纯粹的C#类),只有像NGUI的基本组件的类是继承MonoBehav... 阅读全文
posted @ 2014-05-03 11:37 ing... 阅读(965) 评论(0) 推荐(0)
摘要:Unity协程(Coroutine)管理类——TaskManager工具分享By D.S.Qiu尊重他人的劳动,支持原创,转载请注明出处:http.dsqiu.iteye.com 在分享vp_Timer中提到,没有继承的MonoBehaviour,没有Update,InVoke 和Star... 阅读全文
posted @ 2014-05-03 11:34 ing... 阅读(1438) 评论(0) 推荐(0)