• Hello Guest!

    We have recently updated our Site Policies regarding the use of Non Commercial content within Paid Content posts. Please read the new policy here.

    An offical announcement about this new policy can be read on our Discord.

    ~The VaMHub Moderation Team
  • Hello Guest!

    We posted an announcment regarding upcoming changes to Paid Content submissions.

    Please see this thread for more information.

Question error using multiple assetbundles created in unity

LustLifeComic

New member
Messages
2
Reactions
1
Points
3
Hello, i'm having an error in Vam, that every time I try to load more than one assetbundle that I created in unity, only the first one works, when I load the second one I get an error
"No valid". the strange thing is that the others assetbundles from the community works in the same scene. only the ones that a created in unity that doesn't work in the same scene.
any help will be appreciated.
 
Assets in Unity engine are identified by GUID's, which stands for Globally Unique Identifiers, essentially just a long random number. These are created when you import assets into the Unity project, from that point there is a GUID attached to the asset and used to track it even when you move the file inside the project. However, VaM is also using paths in some cases to identify things, assuming filenames are unique, too. That's causing some trouble.

Don't ever use in the same scene:
  1. Different AssetBundles with same filename (not even when they are in different folders)
  2. Different AssetBundles that have the same assets (= same GUID) in them
  3. Different Assets that have the same filepath inside different AssetBundles
 
Upvote 0
Thanks for the return MacGruber . The solution was simpler than I expected. The problem was in the name, at the end when I was baking the assetbundle, I was putting the default name "Prefabs" and only after I baked, that I changed the name and added the .assetbundle.
The solution was just to change the name of the prefabs folder before I bake the assetbundle.
 
Upvote 0
Back
Top Bottom