Skip to content

Dropping a handle from Assets::get_strong_handle has different behaviour to one from AssetServer::load. #20651

@andriyDev

Description

@andriyDev

Bevy version and features

What you did

  • Load an asset using AssetServer::load.
  • Wait for it to load.
  • Use AssetServer::get_strong_handle to get a completely separate handle to the asset.
  • Drop the handle you got from the AssetServer.
  • Reload the asset using AssetServer::load.

What went wrong

  • The AssetServer reloads the asset, even the asset was never dropped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions