Skip to content
Yang's Tech Notes
  • Home
  • Home
  • Tech
  • Unity control
Posted inTech

Unity control

Posted by By admin October 4, 2015

Have unity to respond to in put

Can place the following codes to the update function

Keyboard

If (Input.GetKeyDown (KeyCode.E) {
}

GetAxis

float x = Input.GetAxis("Horizontal");
float y = Input.GetAxis("Vertical");
admin
View All Posts

Post navigation

Previous Post
Unity Trigger Setup
Next Post
LeapMotion Trigger Setup
Copyright 2025 — Yang's Tech Notes. All rights reserved.
Scroll to Top