The basics of playing a sound are very straightforward in Unity (simply add an AudioSource component to a GameObject and link it to an AudioClip sound file). For simple sound effects, such as short, one-off plays of pickup confirmation noises, it's useful to have a single AudioSource component that you can then reuse to play different sound effects. That is what we'll do in this recipe.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Japan
Slovakia