Unity C# How to rotate an object using key press

Published: 16 August 2015
on channel: Design and Deploy
43,653
237

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.


Watch video Unity C# How to rotate an object using key press online without registration, duration hours minute second in high quality. This video was added by user Design and Deploy 16 August 2015, don't forget to share it with your friends and acquaintances, it has been viewed on our site 43,653 once and liked it 237 people.