Skip to content

Include errors in AssetEvent #11288

Closed
Closed
@alice-i-cecile

Description

@alice-i-cecile

What problem does this solve or what need does it fill?

Is there a plan for asset error handling? it seems like right now in many cases when not loading assets directly the AssetLoadError is dumped to error! and there's no way for the client to know that it failed to load. Seems like there needs to be an Events or something to close the loop, since AssetEvent doesn't include error cases. Or just make AssetEvent include error cases.

-shaen on Discord

What solution would you like?

Include the error modes directly in AssetEvent and send them when assets fail to load.

What alternative(s) have you considered?

Make a new event type specific to events. This is inferior because it creates two different streams to listen to for no good reason and makes it easy to simply fail to handle the error cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions