float h = Input.GetAxis("Horizontal") ;//h range from -1 to 1 float v = Input.GetAxis("Vertical") ;//v range from -1 to 1 float h = Input.GetAxisRaw("Horizontal") ;//h is -1, 0, or 1 float v = Input.GetAxisRaw("Vertical&…
static function GetAxis (axisName : string) : float Description描述 Returns the value of the virtual axis identified by axisName. 根据坐标轴名称返回虚拟坐标系中的值. The value will be in the range -1...1 for keyboard and joystick input. If the axis is setup to be delta…