介绍
基本类型
1.
Vector3
1.1.
Distance
1.2.
Angle
1.3.
Normalize
2.
Quaternion
2.1.
Euler
玩家输入
3.
Input
3.1.
GetMouseButton
3.2.
GetMouseButtonDown
3.3.
GetMouseButtonUp
3.4.
GetButton
3.5.
GetButtonDown
3.6.
GetButtonUp
3.7.
GetKey
3.8.
GetKeyDown
3.9.
GetKeyUp
3.10.
附录
时间
4.
Time
4.1.
deltaTime
4.2.
timeScale
4.3.
time
玩家控制
5.
CharacterController
5.1.
SimpleMove
5.2.
Move
5.3.
isGrounded
变换
6.
Transform
6.1.
Rotate
6.2.
Translate
6.3.
LookAt
物理
7.
Rigidbody
7.1.
AddForce
数学
8.
Random
8.1.
Range
物体
9.
Object
9.1.
Instantiate
9.2.
DontDestroyOnLoad
10.
GameObject
10.1.
Find
10.2.
GetComponent
10.3.
GetComponentInChildren
10.4.
AddComponent
10.5.
SetActive
11.
Resources
11.1.
Load
碰撞检测
12.
Collider
12.1.
OnCollisionEnter
12.2.
OnCollisionStay
12.3.
OnCollisionExit
12.4.
OnTriggerEnter
12.5.
OnTriggerStay
12.6.
OnTriggerExit
12.7.
附录
射线检测
13.
Physics
13.1.
CheckSphere
13.2.
Raycast
导航网格
14.
NavMeshAgent
14.1.
SetDestination
14.2.
ResetPath
场景
15.
SceneManager
15.1.
LoadScene
动画
16.
Animator
16.1.
SetFloat
16.2.
SetBool
16.3.
SetInteger
16.4.
SetTrigger
16.5.
GetCurrentAnimatorStateinfo
17.
Animation
17.1.
Play
17.2.
Stop
18.
AnimatorStateInfo
音频
19.
AudioSource
19.1.
Play
19.2.
Stop
19.3.
Pause
19.4.
PlayClipAtPoint
调试
20.
Debug
20.1.
Log
20.2.
LogWarning
20.3.
LogError
20.4.
DrawLine
其他
21.
推荐阅读
Latte
Frappé
Macchiato
Mocha
Resources
用于查找和访问资源等对象。
方法
说明
Load
加载指定路径(资源文件夹中)的资产