Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Asset file deleted on Android build

Discussion in 'Editor & General Support' started by Zanzibar-Buck-Buck-McFate, Feb 20, 2019.

  1. Zanzibar-Buck-Buck-McFate

    Zanzibar-Buck-Buck-McFate

    Joined:
    Jun 23, 2015
    Posts:
    6
    Hey folks,

    I'm experiencing a very strange problem here. One of my soundbank files is deleted from disk any time I attempt to build my project for Android (thus causing the build to fail). Dice.bnk is in Assets/StreamingAssets/Audio/GeneratedSoundBanks/Android after I generate my soundbanks (I'm using Wwise). When I switch back to Unity it sees it and creates a .meta file for it and all is well until I go to build, at which point the file is deleted (confirmed with a shell window). Unity still thinks the file is there until I refresh the folder, at which point it notices it is gone and gives the warning about deleting files without deleting .meta files.

    I have another soundbank file in the same folder that is not being deleted.

    I successfully built the project a few days ago, and as far as I can tell, the only changes between then and now are scripting changes; I don't believe I've mucked around with anything that would affect the build.

    I'm using Unity 2018.3.6f1. Does anybody else have this problem? Does anybody know why this file is being deleted?

    Thanks in advance.
     
    omerviner likes this.
  2. Zanzibar-Buck-Buck-McFate

    Zanzibar-Buck-Buck-McFate

    Joined:
    Jun 23, 2015
    Posts:
    6
    An update:

    I managed to get this working by using the Wwise Picker window's "Generate SoundBanks" button instead of generating soundbanks through the Wwise application.

    However, this problem is back, and no amount of regenerating sound banks through the Wwise app or through the Wwise Picker window is helping.

    If anybody has any bright ideas, I'm all ears (eyes?).
     
    omerviner likes this.
  3. omerviner

    omerviner

    Joined:
    May 2, 2018
    Posts:
    2
    I'm facing the same problem, the copied soundbank is deleted after build.
    Did you find a solution for Android build yet?