摘要: http://blog.csdn.net/a117653909/article/details/16119907 阅读全文
posted @ 2014-06-23 16:18 softimagewht 阅读(836) 评论(0) 推荐(0)
摘要: using UnityEngine;using System;using System.IO;using System.Diagnostics;public class Test : MonoBehaviour{ //7z程序的程序目录 private string _7zExeUrl ... 阅读全文
posted @ 2014-06-23 15:48 softimagewht 阅读(526) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;using System;public class test : MonoBehaviour { DateTime dt1; DateTime dt2; TimeSpan ts; publi... 阅读全文
posted @ 2014-06-23 13:47 softimagewht 阅读(266) 评论(0) 推荐(0)
摘要: KeyCode :KeyCode是由Event.keyCode返回的。这些直接映射到键盘上的物理键。值 对应键Backspace 退格键Delete Delete键Tab TabTab键Clear Clear键Return 回车键Pause 暂停键Escape ESC键Space 空格键Ke... 阅读全文
posted @ 2014-06-23 09:32 softimagewht 阅读(3194) 评论(0) 推荐(0)
摘要: 延迟执行某方法void Start (){ //重复调用 InvokeRepeating("LaunchProjectile", 1,5);//1秒后调用LaunchProjectile () 函数,之后每5秒调用一次 //调用一次 Invoke("LaunchProjectil... 阅读全文
posted @ 2014-06-23 09:12 softimagewht 阅读(374) 评论(0) 推荐(0)
摘要: 编译器属性属性介绍用例AddComponentMenu在Component菜单中添加新的菜单项[AddComponentMenu("Duan/Script/TestScript")]ContextMenu在当前脚本的组件中添加右键菜单内容ExecuteInEditMode让当前脚本可以在运行模式中实... 阅读全文
posted @ 2014-06-23 09:02 softimagewht 阅读(1991) 评论(0) 推荐(0)
摘要: 以前做过简单的rim light勾边,几何勾边,这次又做了后处理的勾边,工程化的时候,都遇到很多问题,简单总结一下。首先是火炬之光勾边效果,类似轮廓光的实现,简单的卡通渲染也是通过类似的算法加采样色阶图实现。火炬中的勾边相当于为角色添加内测光的效果,即通过计算标准散射点积运算来确定顶点法线N和光线向... 阅读全文
posted @ 2014-06-23 08:34 softimagewht 阅读(454) 评论(0) 推荐(0)