Comments (5)
Yesterday night , I found a bug in Addressables [1.1.10] o_O
When I loading error path , AsyncOperationStatus told me “None” , and try loading again AsyncOperationStatus told me “Failed” , I think the second status is right or the first status is a bug .
What’s the different between first load and second load ? ?
TestCode: Sampe1.cs
Then Click The Button Again ! We can see the “Right Error Info” , Status is Failed .
from addressables-sample.
I found out the different between first load and second load , in fact when i click the load button , Addressable will execute InitializeAsync (the function is delay execute) . when i click load button again InitializeAsync function are complete . so the AsyncOperationStatus is right.
from addressables-sample.
from addressables-sample.
IEnumerator loadRes()
{
yield return Addressables.InitializeAsync();
var operationHandle = Addressables.LoadAssetAsync<GameObject>(loadPath);
Debug.Log(operationHandle.Status.ToString());
if (operationHandle.Status == AsyncOperationStatus.Failed)
{
Debug.Log("load failed");
yield break;
}
}
if you want to load asset like this, must run [ Addressables.InitializeAsync() ] function first.
Goodnight !
from addressables-sample.
Hi @KeyleXiao thanks for investigating this! One thing I would suggest is to avoid depending on the value of operationHandle.Status until after the operationHandle has completed. The operation is asynchronous so it's not guaranteed that the Status will always be the same value at a particular frame.
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
- PAD sample does not build HOT 4
- 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.