http://catlikecoding.com/unity/tutorials/
- localRotation是相对父节点的旋转,如果父节点旋转,那么子节点也会旋转。而Rotation是角度已经确定了,即使父节点旋转也不会旋转。
- while 1 unit in Transform.position is always 1 unit, 1 unit in Transform.localPosition will get scaled by the scale of all ancestors.
- Time.deltatime会受timescale的影响,想获得真实的时间应该使用Time.unscaledDeltaTime.
- Unity合批处理
- transform.SetParent,如果第二个参数是false,那么会维持原来的local orientation而不是global orientation。
- WaitForSeconds(int n)暂停coroutine n秒scaled time。
- 如果使用了startCoroutine没有使用WaitForSeconds那么每一帧会调用一次。
- triangle顺时针面渲染,逆时针不渲染。
- 利用objectPool重复使用你的对象。