
Unity 3D
文章平均质量分 61
czlilove
这个作者很懒,什么都没留下…
展开
-
Unity3D:Time.deltaTime
Time.time: The time this frame has started (Read Only). This is the time in seconds since the start of the game.Time.time是这一帧开始的时间,从游戏开始时计算。Time.deltaTime:The time in seconds it took to complete the l原创 2013-09-07 10:59:53 · 2877 阅读 · 0 评论 -
在运行时脚本中使用UnityEditor命名空间
在运行时脚本中使用UnityEditor命名空间,假如该脚本被挂在场景中的物体上,那么:可以这样做,在Unity编辑器中运行时也会正常运行,不会报错。但是当我们打包时会出现以下错误(如果该脚本没有被挂在任何一个脚本上,那么打包时不会包含该脚本,就不会出错):The typeor namespacename `UnityEditor'could not be found. A原创 2014-04-09 08:56:58 · 6786 阅读 · 1 评论 -
Unity3D 动画 关键帧 FrameRate
There isn't really a framerate as such for character animations. Two consecutive keyframes are separated by a certain amount of time, and you can interpolate the key values at any point between the ke原创 2014-08-01 20:59:28 · 3461 阅读 · 0 评论 -
SendMessage
Unity中有一个SendMessage函数GameObject go;go.SendMessage()原创 2014-06-10 21:32:05 · 3398 阅读 · 0 评论 -
Sliced Sprite
Slice:片,切片。Sprite:精灵,子画面http://www.youkuaiyun.com/article/2013-02-18/2814173-how-to-design-for-android-devices转载 2013-11-06 09:56:16 · 753 阅读 · 0 评论 -
CharacterController与Rigidbody
今天下午碰到个问题纠结了很久:人物加上了Rigidbody并使用了重力,遇到悬崖居然不掉下,如履平地地走了过去。想了很久又请教了别人,花了很长时间才发现,CharacterController与Rigidbody两个组件有冲突。Unity圣典中的说法是: 角色控制器允许你在受制于碰撞的情况下很容易的进行运动,而不用处理刚体。(个人理解:用CharacterController组件,原创 2013-06-20 17:33:11 · 5934 阅读 · 0 评论 -
Resources.load及AssetBundle.Load加载过程研究
/// <summary>/// 对Resources.Load进行试验./// 试验准备:/// 1.一个Cube预制体,包含一个贴图,放在Resources文件夹下;/// 2.一个只有相机的场景,上面挂着TestScript脚本(也就是本脚本)/// </summary>using UnityEngine;using System.Collec...原创 2015-06-11 20:47:26 · 3417 阅读 · 0 评论