Unity3D
KCDKFT
Life is war with no mercy.
展开
-
Unity3D的碰撞检测遇到的有趣BUG
Assume that A and B are both given the Box Collider. If we use the function bound.Intersect() to detect the collide between A and B, there seems a way to make this kind of detection effectiveness and原创 2013-09-07 09:29:25 · 4950 阅读 · 0 评论 -
Unity3D SetActive二三事
事情1:BUG— NullReference在Unity3D的使用中,有时需要将一些模型停用,也就是停止渲染,这样可以达到提高性能的效果,有时也是为了场景需要,SetActive的应用不慎会出BUG,经常遇到的就是NullReference,也就是找不到对象。BUG原因1. 无该gameObject2. 使用GameObject.Find() 名字的索引有误3. 被操作原创 2013-09-09 17:07:11 · 27948 阅读 · 1 评论