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
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand