Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29

Thread: AssetBundles as Audio players

  1. #26
    Alrighty so I feel dumb for not doing that part. I got that all working, and I even was able to properly import the cube into TTS.

    Now the issue is that while I changed I believe the correct sound file (the number four slot) to use the music I was trying, it doesn't update and stays at the song you originally set it to.

    Looks like this.

    Any ideas?

  2. #27
    An assetbundle is created from the Prefab, that's the bit that's connected to the assetbundle name when you "build it" but if you make your alterations on an active object in the Hierarchy panel you'll need to make sure you apply these changes so they feed back into the Prefab your working object is created from . . . think of it as your working on a copy but need to transfer the alterations you make back to the original before you export it.

    So once you make your changes in the inspector panel Top left corner click on "Apply" to make sure this is happening. Then try and build your assetbundle again. before we go any further

  3. #28
    Ah, I got it, thanks!

    Different issue now, though. When I pull the asset bundle into TTS, it spawns two linked cubes that function as a single object, and it has 8 slots for music.

    This is what I'm talking about.

    Clearly I did something wrong, but I can't figure out how I managed to pull this one off.

    Edit: Also, is there a way to edit the volume of the cube? I messed with the volume settings in TTS and none of the sliders had any effect on the volume of the sounds played from the cube.

  4. #29
    This is One of two things, you've either duplicated the model in the scene and applied it to the Prefab before you built the Assetbundle and exported it.

    Or you have two separate objects both assigned with the same Assetbundle name in your project so when you build. . . it builds both together as a single item.

    Easiest way to find out is to select the Prefab you want to export and change its Assetbundle name before you build it. this way you can be sure your not accidentally sweeping up another prefab by mistake.
    Last edited by Lucky seven; 05-04-2017 at 06:12 AM.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •