Handle<TypeId(0x4c1e3c7862aba54dfc7aa5e3d6e9108b)>

Strong

  1. alloc::sync::Arc<bevy_asset::handle::StrongHandle>

Weak

  1. bevy_asset::id::AssetId<bevy_asset::folder::LoadedFolder>

Description

A strong or weak handle to a specific [Asset]. If a [Handle] is [Handle::Strong], the [Asset] will be kept alive until the [Handle] is dropped. If a [Handle] is [Handle::Weak], it does not necessarily reference a live [Asset], nor will it keep assets alive.

[Handle] can be cloned. If a [Handle::Strong] is cloned, the referenced [Asset] will not be freed until all instances of the [Handle] are dropped.

[Handle::Strong] also provides access to useful [Asset] metadata, such as the [AssetPath] (if it exists).

Functions