Unity Manual 笔记

  • notes
  • scene view
  • 3D/2D
  • physics
    • 碰撞
  • scripts
  • Automatic Memory Management
  • TODO

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

你可能感兴趣的:(工具)