Application.targetFrameRate = 10;
每秒调用帧率,10次
Application.targetFrameRate = 10;
每秒调用帧率,10次
float h = Input.GetAxis("Horizontal");
-1 到 1的值。
float h = Input.GetAxis("Horizontal");
Input Manager
Input.GetAxis();
小数类型, 0.1f
V2.类型的,因为是结构体,要修改时bi
V2 pos = transform.position 变量,是在内存中的一个位置。
等号左边是位置,右边是值。
变量类型,容器类型大小。
1秒大概60次,根据电脑性能。
脚本即组件。
函数,方法,功能。
Horizontal x轴
Vertical y轴
depth z轴
如果一个对象是另一个对象的子对象,我们要以父亲的坐标为原点来进行计算。相对于父亲节点的坐标。
图片, sprite(2dAndl UI)
保存。
Input.GetAxix("")方法:
layout
快捷键都是改变的transform.
T键可以 改变位置,旋转,
transform 位置,大小,旋转 不可能移除。
Sprite Render 组件。
组件,
实现某个物体的集合。
场景面板, scene
游戏面板, game
inspector jian'shi
Heriarchy 层次面板。