In this chapter, we introduced Unity scripting at a very high level. Even a basic understanding of scripting will be essential to sound designers or other artists working on Unity projects, as it provides them with the ability to make simple changes without interrupting a dedicated developer. From a basic scripting introduction, we worked our way into a more practical example of writing a simple musical keyboard. It not only introduced additional scripting concepts but also exposed how some of the essential audio source component properties can be altered to match an instrument. After that, we jumped back into the Viking Village project and looked at another good scripting example that showcased weapons. Through repeated testing of our scene we then realized our audio was becoming quite repetitive. The solution was to introduce volume and pitch randomization on our audio...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia