Timeline for Play two different audio sources depended on code behind
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 4, 2017 at 16:22 | comment | added | DMGregory♦ | Paths to resource folders have a few disadvantages: 1) The user has to key them in and validate them manually, since Unity doesn't expose a "path" field. 2) If the resource file moves or changes name, the behaviour breaks. 3) Unity can't determine in advance which resources will be used, so it needs to pack them all into your executable even if you only reference a few of them. 4) Unity doesn't know which clips to have ready in memory until the moment you try to load & play them, which can cause a delay. In all of these regards, exposing an AudioClip property is more robust. | |
| Jul 4, 2017 at 14:34 | comment | added | Philipp | Please don't just drop some code. Please add some explanation how and why your code solves the problem. We are here to teach people, not just to fix their current problem. Give someone a fish, and you feed him for today. Teach someone how to fish, and you feed him for life. | |
| Jul 4, 2017 at 14:33 | review | Late answers | |||
| Jul 4, 2017 at 15:45 | |||||
| Jul 4, 2017 at 14:32 | history | edited | Philipp | CC BY-SA 3.0 | fixed format |
| Jul 4, 2017 at 14:24 | review | First posts | |||
| Jul 4, 2017 at 14:24 | |||||
| Jul 4, 2017 at 14:18 | history | answered | Janibasha | CC BY-SA 3.0 |