Unity3d WebPlayer has no sound problems. unity3dwebplayer

Source: Internet
Author: User

Unity3d WebPlayer has no sound problems. unity3dwebplayer

Unity web player is a game plug-in released by running the unity3d game engine in a browser. It is similar to Flash Player. It is safe and non-toxic and should be installed when you play a web game, you can uninstall it if you do not play it later.


 

Sound Effects of Unity web player without sound problems

In the process of moving the project from the mobile web platform of IOS platform, it was found that there were no problems with the original sound effects, and there was no sound in the web version, later, I compared them with the audible files in unity, for example (selecting a sound file will be displayed in Inspector ):


The back of the content is (OGGVORBIS), which sounds on the web browser.



Followed by (MPEG) in the web browser.

You can switch the attributes in the Inspector, but remember to switch back and click apply.



Clear UnityWeb Player download Cache

16:58:00 | category: unity3d | report | font size subscription
Similar to Flash, Unity3D WebPlayer is a browser 3D plugin. After installation, you can experience 3D games on the webpage.

The Unity3D plug-in is a very frustrating function. Once the game's resource file download fails, you may never be able to enter the game again. Currently, no good solutions are provided officially. You can only clear the cache manually. For normal players, manual means pain. As a result, a simple command line tool, as long as you double-click, can help you relieve the pain.

First, close the browser (IE or 360)
If the problem persists, follow these steps:
1: Open notepad, copy the following to notepad, and save it as clear. bat.
(Currently, only Windows XP and ie and 360 browsers are supported. Other systems and browsers will be updated one after another)

@ Echo off
Echo "cleaning Unity cache ..."
Cd % userprofile % \ Local Settings \ Application Data \ Unity \ WebPlayer
Rd/s/q cache
Echo "Unity cache cleared! "
@ Echo off
Echo is clearing the IE cache file. Please wait ......
Del/f/s/q "% userprofile % \ Local Settings \ Temporary Internet Files \*.*"
Echo cleared IE cache!

2. Double-click to run clear. bat.

How are you doing? Simple?


Webplayer has images without sound

Get some players
Good storm audio and video
Supported formats
Haha
 
How to add sound in unity3d

1. Put the sound file into the project directory
2. Generally, there is an Audio Source under the master camera. select Audio Clip as the file you imported.
Other configurations include:
The above is the simplest method. No programming is allowed. If you want to deeply control the playing sound, you have to write a script.
Audio. Play () specifies the default sound for playing, and audio. PlayOneShot (xxx) indicates the specified audioClip for playing)




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.