top of page

Demonstrations

Audio.PNG
audio2.PNG

Audio and Keyboard Input Control

Audio clip is played in the scene by the audio Source (Technologies, 2021). 

Input Manager is responsible take inputs from the external devices like keyboards, Joysticks and execute the relate function and helps us define own input axes and their related actions/function.

​

Here, the resources are downloaded from the website given in the book, a script is written and attached to the car. Here, car moves forward and backward as well as rotates from the user input from the keyboard using UP, DOWN, LEFT and RIGHT arrow keys. Keyboard inputs are defined in the code itself. For the audio, it is downloaded from the internet and a new object is created from the Hierarchy dropdown option which is Audio -> Audio Source. Then the audio clip is connected with it and when the game starts the audio also starts but here, we need to select the loop option in Inspector so the audio plays continuously. Video of a game play and two screen shots are provided as a part of the demonstration.

 
 
 

Bibiliography

Technologies, U., 2021. Unity - Manual: Audio Source. [online] Docs.unity3d.com. Available at: <https://docs.unity3d.com/Manual/class-AudioSource.html> [Accessed 19 February 2021].

​

This reference is selected because it is documentation from the Unity providing description and images to follow through.

​

Technologies, U., 2021. Unity - Manual: Input Manager. [online] Docs.unity3d.com. Available at: <https://docs.unity3d.com/Manual/class-InputManager.html> [Accessed 19 February 2021].

​

This reference is selected as the documentation is from the Unity itself, well structured, in details with syntax and all viable option to go through along with code snippets.

​

YouTube. 2021. How to Add Sound to a Unity Game Object. [online] Available at: <https://www.youtube.com/watch?v=04y0jJgh-7U> [Accessed 19 February 2021].

​

Here the tutor has shown how to add the audio clip along with the diverse options that can be tinkered with and their usage.

​

 
 
 
 
 

BE AN EXCLUSIVE 50 ZONES MEMBER AND RECEIVE  NEWS AND UPDATES TO YOUR EMAIL

Thanks for submitting!

bottom of page