Unity C# How to rotate an object using key press
Channel:
Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=Z190R-7pyxc
This shows how to rotate and object using key strokes.
First, drag your object from Assets to the scene.
Second, attach a new script.
Add Keycode type variables to the script and designate corresponding keys in the Inspector.
Use eulerangles to perform the rotation.
Other Videos By Design and Deploy
2015-10-17 | Anime Studio Pro - Changing Opacity over Time - Example 1 - Ghost |
2015-10-12 | Anime Studio Pro - Bouncing and Distortion - Ex 1-Translate Point Tool |
2015-09-13 | Unity C# - GetComponent Tutorial Example 1 |
2015-08-25 | Unity C# - Prefabs and Instantiation - Example 2 Projectiles |
2015-08-24 | Unity C# - Creating and Instantiating Prefabs - Example 1 Tiling |
2015-08-21 | Unity C# - Collision detection and destroying objects |
2015-08-20 | Unity C# - Mouse Over Text / Clickable text |
2015-08-19 | Unity C# - Full Screen Fade |
2015-08-17 | Unity C# How to add a Delay / Timer |
2015-08-16 | Unity C# Change Object Transparency |
2015-08-16 | Unity C# How to rotate an object using key press |
2015-08-16 | Unity C# Move an Object with a Key press |