I have a few images in my game that absolutely need to be visible to be able to play the game, and yesterday one of them failed to load. Currently, I don’t Preload any assets/images, but I do plan to do this in the future.
Does preloading images ensure there is no chance that they will fail to load? If the answer is no, how can I ensure that my images will load without fail?
Right now I’m thinking I’ll have to parse error messages and if an image fails to load, just attempt to reload it later.
Images can fail to load even when calling PreloadAsync. You can check the ImageLabel.IsLoaded property after Preloading the image. If it is false, you can attempt to preload again, or queue it to attempt again in a few seconds.
It would be nice if PreloadAsync returned an error code if it fails to load the image (such as image moderated, etc), however it is a void function.