unity基础常用API学习笔记

如何看Unity文档和API手册

Unity中的事件方法
MonoBehaviour
file:///D:/Program%20Files/Unity%205.6/Editor/Data/Documentation/en/Manual/ExecutionOrder.html

Time.deltaTime 当前帧运行占用的时间
realtimeSinceStartup 从游戏开始到现在的总时间
smoothDeltaTime
fixedTime
timeScale

GameObject游戏物体
activeSelf
activeInHierarchy
tag

构造方法
Instantiate
CreatePrimitive

AddComponent 添加组件

Tranform

Object Destroy

GameObject和Component 相同点和区别

游戏物体查找
Game.Find
FindObjectsOfType
FindWithTag
transform.Find

GetComponet(s)InChildren

Mathf
Deg2Rad
Infinity

Clamp
ClosestPowerOfTwo
Lerp
LerpAngle
MoveTowards
PingPong
Round
SmoothDamp

Input
GetKey…
GetAxis
OnMouse

Vector2

Vector3

Random 随机整数 随机小数的生成
什么是随机种子

Quaternion
什么是四元数
Quaternion.LookRotation
Euler
Lerp
Slerp

Rigibody
mass velocity
useGravity isKinematic

AddForque
AddForce
MovePosition

Camera
mainCamera
ScreenPointToRay
ScreenToWorldPoint
WorldToScreenPoint

Application.dataPath

streamingAssetsPath
persistentDataPath
temporaryCachePath

companyName
idenifier
installerName
isEditor
isFocused
isMobilePlatform
isPlaying
is

场景加载
SceneManager
LoadScene LoadSceneAsync
GetActiveScene

CaptureScreenshot
API

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值