Comments (4)
Same problem, but there is a workaround. See this https://forum.unity.com/threads/pad-unity-2021-3-not-created-src-main-assets-automatically-for-custom-asset-bundle.1389945/
from addressables-sample.
Yes, as I said - changing the script to move the bundles to src/main/assets
folder by hand - "works"
But still - when loading in a fast-follow pack it doesn't seem to work:
- Addressables in an on-demand pack work fine both with local testing and through google play
- Google play displays both "customFastFollow" and "CustomOnDemand" packs correctly
- Fast-follow assets work when sideloading with bundletool using
--local-testing
However, when downloading from google play and trying to load an asset from a fast-follow pack I get an error:
01-30 12:33:52.416: E/Unity(27352): Failed to retrieve the state of asset pack 'CustomFastFollow'.
01-30 12:33:52.416: E/Unity(27352): AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider:CheckDownloadStatus(AndroidAssetPackInfo)
01-30 12:33:52.416: E/Unity(27352): System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
01-30 12:33:52.416: E/Unity(27352): UnityEngine.AndroidJavaProxy:Invoke(String, Object[])
01-30 12:33:52.416: E/Unity(27352): UnityEngine._AndroidJNIHelper:InvokeJavaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)
01-30 12:33:52.416: E/Unity(27352): OperationException : Provider of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider with id AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider has provided a result of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider which cannot be converted to requested type UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource. The operation will be marked as failed.
01-30 12:33:52.416: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
01-30 12:33:52.416: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, Exception, Boolean)
01-30 12:33:52.416: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1:ProviderCompleted(T, Boolean, Exception)
01-30 12:33:52.416: E/Unity(27352): UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle:Complete(T, Boolean, Exception)
01-30 12:33:52.416: E/Unity(27352): AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider:CheckDownloadStatus(AndroidAssetPackInfo)
01-30 12:33:52.416: E/Unity(27352): System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlag
01-30 12:33:52.419: E/Unity(27352): Exception: Provider of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider with id AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider has provided a result of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider which cannot be converted to requested type UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource. The operation will be marked as failed.
01-30 12:33:52.419: E/Unity(27352): at UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1[TObject].ProviderCompleted[T] (T result, System.Boolean status, System.Exception e) [0x00000] in <00000000000000000000000000000000>:0
01-30 12:33:52.419: E/Unity(27352): at UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.Complete[T] (T result, System.Boolean status, System.Exception exception) [0x00000] in <00000000000000000000000000000000>:0
01-30 12:33:52.419: E/Unity(27352): at AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider.CheckDownloadStatus (UnityEngine.Android.AndroidAssetPackInfo info) [0x00000] in <00000000000000000000000000000000>:0
01-30 12:33:52.419: E/Unity(27352): at Syste
01-30 12:33:52.424: E/Unity(27352): OperationException : GroupOperation failed because one of its dependencies failed
01-30 12:33:52.424: E/Unity(27352): OperationException : Provider of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider with id AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider has provided a result of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider which cannot be converted to requested type UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource. The operation will be marked as failed.
01-30 12:33:52.424: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
01-30 12:33:52.424: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, Exception, Boolean)
01-30 12:33:52.424: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.GroupOperation:CompleteIfDependenciesComplete()
01-30 12:33:52.424: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.<>c__DisplayClass57_0:<add_CompletedTypeless>b__0(AsyncOperationHandle`1)
01-30 12:33:52.424: E/Unity(27352): System.Action`1:Invoke(T)
01-30 12:33:52.424: E/Unity(27352): DelegateList`1:Invoke(T)
01-30 12:33:52.424: E/Unity(27352): UnityEngine.ResourceManag
01-30 12:33:52.457: E/Unity(27352): System.Exception: Dependency Exception ---> UnityEngine.ResourceManagement.Exceptions.OperationException: GroupOperation failed because one of its dependencies failed ---> UnityEngine.ResourceManagement.Exceptions.OperationException: Provider of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider with id AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider has provided a result of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider which cannot be converted to requested type UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource. The operation will be marked as failed.
01-30 12:33:52.457: E/Unity(27352): --- End of inner exception stack trace ---
01-30 12:33:52.457: E/Unity(27352): --- End of inner exception stack trace ---
01-30 12:33:52.457: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
01-30 12:33:52.457: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, Exception, Boolean)
01-30 12:33:52.457: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:I
01-30 12:33:52.491: E/Unity(27352): OperationException : Dependency operation failed with System.Exception: Dependency Exception ---> UnityEngine.ResourceManagement.Exceptions.OperationException: GroupOperation failed because one of its dependencies failed ---> UnityEngine.ResourceManagement.Exceptions.OperationException: Provider of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider with id AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider has provided a result of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider which cannot be converted to requested type UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource. The operation will be marked as failed.
01-30 12:33:52.491: E/Unity(27352): --- End of inner exception stack trace ---
01-30 12:33:52.491: E/Unity(27352): --- End of inner exception stack trace ---.
01-30 12:33:52.491: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
01-30 12:33:52.491: E/Unity(27352): UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, Exception, Boolean)
from addressables-sample.
Okay, I dd a few tries, and it seems the above is caused by... fast-follow packs not working together with nested prefabs.
The setup was simple:
-- a cube prefab
--- a nested capsule prefab inside the cube
Both assets were in the same group.
Moving the assets to an on-demand group makes them load in correctly.
Loading in a regular prefab from a fast-follow pack works as well
EDIT: Nope, it doesn't. As soon as I added another prefab to the group (a simple cube)- it broke. Neither pack together nor pack-separately work... Something is very broken with the fast-follow asset packs....
from addressables-sample.
I'm not sure about the error. I'm just wondering what make you use Fast Follow rather than OnDemand?
Maybe you coukd try make async like this
#66 (comment)
from addressables-sample.
Related Issues (20)
- SpaceShooter DynamicInvoke error while playing
- Error - JetBrains.Rider.Unity.Editor.Plugin.Repacked.dll HOT 1
- How do I get the scene name?
- The BuildProcessorData.json and CustomAssetPacksData.json not generated
- Are google play instant apps possible to be downloaded using the Play Asset Delivery example?
- WaitForCompletion() not working? HOT 1
- Removing a Specific Child Object in a Content Update Causes an Error. HOT 1
- Play Asset Delivery sample silently fails if bundle names conflict HOT 1
- Play Asset Delivery sample does not properly load from fast-follow Asset Pack HOT 1
- Addressables are not working on WebGL on new Unity versions HOT 1
- Request to PGS failed because all packs are unavailable HOT 1
- Custom asset packs are not generated HOT 1
- error display before enter the game
- Error constantly reported when selecting assets configuration and cannot be modified HOT 1
- Addressables + PAD not working with google.play.core 1.8.1, google.play.assetdelivery 1.8.1 (api 2.0.0, Unity 2022) HOT 1
- Download On-demand assets gets failure at random HOT 1
- Address 'xxx' cannot contain '[]' error HOT 2
- Does Addressables support 8K videos?
- In IDE, I can use editorAsset through AssetReference, and there are no errors when loading scripts in IDE or Unity. However, during build, Unity prompts me that AssetReference does not include the definition of editorAsset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addressables-sample.