Questions tagged [assetbundle]

AssetBundles are a collection of assets, packaged for loading at runtime. With Asset Bundles, you can dynamically load and unload new content into your application. AssetBundles can be used to implement post-release DLC

AssetBundles are a collection of assets, packaged for loading at runtime. With Asset Bundles, you can dynamically load and unload new content into your application. AssetBundles can be used to implement post-release DLC.

They can be used to reduce the amount of space on disk used by your game, when first deployed. It can also be used to add new content to an already published game.

243 questions
3
votes
1 answer

How encode Audio file and save it with unity?

I want to encode some type of file from my assetbundle and save those files to my path. I use this code for encoding Texture2D file to ".jpg" and save it: (my assetbundle method work fine) texTmp = (Texture2D) Instantiate…
Rooz
  • 215
  • 3
  • 13
3
votes
1 answer

Why the mesh has been marked as non-accessible when adding MeshCollider from assetBundle and how to solve it?

I have a scriptable asset containing a fxbModel on a GameObject variable and with it i'am doing this: model = Instantiate(caAsset.model, origin); fbxComponents.All(fbxComponent => fbxComponent.gameObject.AddComponent()); Is the asset…
row
  • 131
  • 2
  • 11
3
votes
3 answers

How can i load asset bundle which don't know the name of asset?

I want to load and instantiate asset from my asset bundle, but in unity 5.+ i can do it with code like this: Note: my assetbundle have one asset inside itself, like: AssetBundle myLoadedAssetBundle; public string path; void Start() { …
Rooz
  • 215
  • 3
  • 13
3
votes
0 answers

Unity Addressables System: Can I make a script addressable and load/use at runtime (and how)?

I try to make an addressable scene, but the scripts of it must be at the project's directory in order to run in the addressable scene (when it is loaded). The thing is that I need to build them into the addressable and load/use them at runtime. I…
3
votes
1 answer

Issues displaying Sprites loaded from AssetBundle in Editor Play mode

I'm struggling with an issue in Unity loading Sprites from a SpriteAtlas, downloaded in an AssetBundle. In our current game I am trying to implement AssetBundles to remove "Resources" folder usage, and reduce memory overhead (among other things). In…
Buzzrick
  • 823
  • 9
  • 21
3
votes
0 answers

Can i add video clip to asset bundle in unity?

I am working on AR application in unity engine and i have a huge amount of video clips somy problem is that how can I add them into AssetsBundle so I can reduce the size of Application, or there is any other way to Manage them ?
3
votes
0 answers

Saving Unity AssetBundle From WebServer to Local Storage using AssetBundle Manager

I'm very new to unity and I got stuck in storing Asset and also I'm not a native English man so sorry for my English also. I'm using asset bundle manager of unity and I can load assets from the server when I need them but I don't want to load the…
Rahul Das
  • 31
  • 5
3
votes
1 answer

Get Hash128 from AssetBundle for the Caching.IsVersionCached function

I want to know AssetBundle already in cache. This is usually done with the Caching.IsVersionCached function. The Caching.IsVersionCached(string url, int version) function overload is no longer supported in Unity 2017.1. Unity 2017.3 is recommends…
BlueStar
  • 405
  • 1
  • 6
  • 10
3
votes
1 answer

How Do I Load A Assets Bundle

So I have created this object which is supposed to load a game over screen whenever I touch a gameobject. However, when I run it, I get this run time error Scene 'A' (-1) couldn't be loaded because it has not been added to the build settings or…
user5672814
3
votes
0 answers

Unity3D AssetBundle prefab with missing material

I have a project where I'm building an AssetBundle and loading a prefab from said assetbundle. This prefab consists of an empty, with a single child object that contains a mesh, meshfilter, collider and a material. When I load this prefab, the…
APalmer
  • 919
  • 3
  • 11
  • 22
3
votes
0 answers

Unity LoadFromCacheOrDownload non asset bundles

Is there any build-in way to download and cache anything other than asset bundles. I'd be using asset bundles for my layout, but I don't want to rebuild my entire bundle for the sake of editing 1 texture. My approach is currently an json which…
Thomas
  • 649
  • 9
  • 17
2
votes
1 answer

Problem with Asset Bundles in Unity 2020.3.30f1

i've a problem with my object contained in the Bundle because it is instancied without textures (materials). Now i will explain you what i've do. I've installed AssetBundles Browser package into unity for make me easier the creation of…
2
votes
0 answers

AudioClip load issue with AssetBundles

I am trying to load an audio clip using AssetBundles but strange result. Actual audio file: File loaded from AssetBundle: AudioClip gets loaded successfully but when I try to play, I get "FMOD::Sound instance for clip "fileName" (FMOD error: File…
2
votes
0 answers

Unity Sprites Are Being Corrupted At Runtime

In our project we have some prefabs we load from a streaming asset bundle. It recently started loading corrupt sprites in the editor (not a build). If the prefab is dragged into the scene it works and looks fine. If its loaded from the streaming…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
2
votes
0 answers

UnityWebRequest returns different errors for right urls

I'm using UnityWebRequest to download asset bundles from my server. Sometimes the following code returns different exceptions such as Failed to receive data , Cannot resolve destination host, Cannot connect to destination host, Unknown Error,…
1
2
3
16 17