All our assets are placed in asset bundles, it is useful for us because we can load data step by step and show game to user earlier.
Will it be possible to store Enlighten data in bundle and then load it in game dynamically?
Hi kopysov, yes it will be possible. It is a known issue that it doesnāt work right now and we will fix this (fogzbugs id 648609).
Has this since been implemented? Any ETA?
No, I canāt promise which specific beta version will contain it yet.
Looks like this feature has been implemented as of RC1!
Now, Iām struggling to figure out how to handle the Enlighten data. Where is it stored? How do I create a Asset Bundle from it. I found a āLightmap Snapshotā file, but I canāt build an asset bundle from it ( I get an āEditor Objectā error). Iāve tried to use Google and the forums, but with no luck. Any help is appreciated.
i assume it would be included in the scene bundle
That seems to be the way to go! However, I do get an error once I load the scene via asset bundles:
Failed opening GI file: ā1f/1f5d62da6476019d18daec406fb2f035.iws.sseā.
(Filename: C:/buildslave/unity/build/Runtime/GI/HashFile.cpp Line: 168)
Failed opening GI file: ā1f/1f5d62da6476019d18daec406fb2f035.visā.
(Filename: C:/buildslave/unity/build/Runtime/GI/HashFile.cpp Line: 168)
Failed opening GI file: ā1f/1f5d62da6476019d18daec406fb2f035.rsc.sseā.
(Filename: C:/buildslave/unity/build/Runtime/GI/HashFile.cpp Line: 168)
Failed opening GI file: ā1f/1f5d62da6476019d18daec406fb2f035.tawā.
(Filename: C:/buildslave/unity/build/Runtime/GI/HashFile.cpp Line: 168)
Failed loading system data for hash: 0x1f5d62da6476019d18daec406fb2f035
(Filename: C:/buildslave/unity/build/Runtime/GI/Enlighten/EnlightenRuntimeManager.cpp Line: 1712)
Do I need to manually setup the GI references or something like that?
Building a scene asset bundle should automatically include the GI data since RC1.
Iām running RC1 and it looks like the GI data is stored in my scene asset bundle (looking at file-size). But when I load the bundle and load the scene (Application.LoadLevel), Unity loads the scene contents but not the GI and I get the above error.
Do I need to unpack or instantiate the lighting data in any way? Thank you for your help. I think you guys are doing a fantastic job with the new lighting system and Unity 5 in general.
If I run in the Editor, I get this lovely error:
I can load Scene asset bundles with no issue, this only happens when I package the scene asset bundle with lighting data. Was anybody else successful loading Enlighten data from asset bundles?
We have reproduced some issues here with asset bundles in the editor. It should work in RC1 in the standalone player. We hope to fix asset bundles with enlighten data in the editor in RC3.
Good to hear. FYI, the first error log Iāve posted was from a standalone build on Windows (not in the editor).
I got a similar error when loading an asset bundle scene without GI data. It looks like this error might not be related to asset bundles since the file that is referenced in the error is a prefab Iām trying to instantiate. Just thought this might relate to the asset bundle errors.
This only occurs in the editor, the build works fine.
Was this bug addressed? As of RC3 Iām still getting the same/similar errors.
We adressed the asset bundle issues. If there is another bug, then please file a bug report with repro project.
If you post the case number here that will be appre
I resolved some issue I had with loading my asset bundle and it seems to be working at last!
It looks like the errors posted above were cause by loading an assetbundle (specifically the enlighten data) from cache. Loading the same bundle from the web resolved all my issues. I just filed a bug report: 676721_dujd3ouspjmou32m