Returns the value of the virtual axis identified by axisName
with no smoothing filtering applied.
function Update () { var speed : float = Input.GetAxisRaw("Horizontal") * Time.deltaTime; transform.Rotate (0, speed, 0); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Update() { float speed = Input.GetAxisRaw("Horizontal") * Time.deltaTime; transform.Rotate(0, speed, 0); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Update() as void: speed as float = (Input.GetAxisRaw('Horizontal') * Time.deltaTime) transform.Rotate(0, speed, 0)