Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Soursquirm · Jun 04, 2014 at 01:11 PM · audiofile-io

Replacing Audio Files

Hi guys. I'm using a demo for a school project and am just doing the audio. I have loads of the same audio files attached to multiple characters. However, I need to change one of these files. Is there a way that I can change this file without having to painstakingly go through and change each file individually? Can I drag and drop a file with the exact same name in to the program to replace it? Only it will have a different file path. Eg: Sword1 needs to be changed with a new file. If I change the new files name to also be Sword1, will this overwrite the original and change it to be that one file for all the audio sources?

Thanks in advance!

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nerevar · Jun 04, 2014 at 02:03 PM 0
Share

Hi,

Well it depends on how it is coded and how the audio files are loaded. But if it is cleverly done you should just need to place the new file with the right name at the right path and it should work.

avatar image Soursquirm · Jun 04, 2014 at 02:13 PM 0
Share

I'm pretty certain that it's coded for a play array. So, do I replace the file in the assets folder in the program or in the windows explorer browser/$$anonymous$$ac finder? Thanks :)

avatar image Scribe · Jun 04, 2014 at 02:16 PM 0
Share

If you call the file the same name outside of unity (in windows explorer etc) it will keep all references to it within scripts but change the sound it plays to the new one, I think if you do it inside unity, it will not update the script references and not work.

Alternatively you could write a simple editor script to switch all references to one audio in the scene to a different one.

avatar image Soursquirm · Jun 05, 2014 at 03:36 PM 0
Share

Thanks guys! Replacing the files in the assets folders in windows explorer worked. I'm very happy! Cheers!

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iOS playing audio from Documents folder 2 Answers

Reading Wav file from a folder 0 Answers

User choose audio from HardDisk/Cd 2 Answers

Possible MultiChannel Audio composer software? 2 Answers

Trying to play other objects' sound and animations from Raycast hit 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges