Unity Manual 笔记

notes

  • packages: collections of asserts
  • play模式下改变不会被保存
  • Math.Lerp()线性插值

scene view

  • gizmo: camera
  • perspective/orthographic
  • Arrow,orbiting,zooming,flythrough

3D/2D

3D 2D
Perspective Orthographic

physics

  • rigidbody
    • gravity
  • collision
  • sleeping

碰撞

  • Rigidbody with gravity
  • capsule collider with isTrigger

scripts

  • same classname as filename
  • update(): movement, trigging action & responding
  • public –> inspector
  • find object
    • transform.find(“”) // child objects
    • GameObject.Find(“”) // byname
  • update: FixedUpdate->Update->LateUpdate
  • Rendering: OnPreCull/OnBecameVisible/OnBacameInvisible

Automatic Memory Management

  • Serialized: public, not static, const

TODO

  • Networking
  • UI
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页