StartCoroutine
StopCoroutine
IEnumerator
yield return waitForSeconds(3);
SceneManager.LoadScene
SceneManager.GetActiveManager
SceneManger.LoadScene(SceneManager.GetActiveScene().buildIndex);
OnLevelWasLoaded(int level)
private void OnLevelWasLoaded(int level)
void OnSceneLoaded()
SceneManager.sceneLoaded += this.OnSceneLoaded
Scene scene, LoadModed model
sceneCount当前加载的场景数量
sceneInBuildSettings
CreateScene只能在Editor模式下运行
name
rootCount
isLoaded
GetRoot
GetRootGameObejct
GetSceneAt
AsyncOperation
加载进度
progress 0-1
下载完成
进度的比例
SceneManager.LoadScene("Level1");
OpenURL
CaptureScreenshot
freezeRotation
position
rotation
eulerAngles
Euler
LookRotation
随机生成整数的时候不包含最大值
Equals
Normalize
ToString
Set
Angle
ClampMagnitude
Distance
Dot
Lerp
anyKeyDown
Input.mousePosition
Camera.main.screentoray
利用射线
GetAxis
print(Input.GetAxis("Horizontal");
acceleration
key
imeIsSelected 输入法是否被选择
im
按相同的比例进行插值
来控制物体运动到目标物体
速度会先快后慢
Exp
ClosestPowerOfTwo
Floor
Floor2Int
Max
Min
Pow
Exp
Sqrt
Deg2Rad
Rad2Deg
Epsilon
Infinity
NagativeInfinity
PI
StartCoroutine
StopAllCoroutine
StopCoroutine
dwadw
IsInvoking
Invoke
InvokeRepeating
CansInvoking
MonoBehaviour
静态方法 Static Functions
成员
name
enabled=true/false
tag
gameObject
transform
isActiveAndEnabled