Skip to content

0.13.0

Choose a tag to compare

@mintlu8 mintlu8 released this 30 Nov 11:29
· 77 commits to main since this release
82fba25

Features

  • fetch! macro

The following are allowed, as an alternative to patterns like AsyncWorld.entity(entity).component<Component>()

fetch!(entity, Component)
fetch!(entity, Query)
fetch!(entity, QueryData, QueryFilter)
fetch!(#entity)
fetch!(Resource)
  • bevy_picking integration

bevy_defer_picking has been removed and merged into bevy_defer. Use AsyncEntity::on<Click>() to create a stream that listens to events provided by bevy_picking.

  • Better error handing.

AccessError now contains a static string of its associated type. CustomError is removed.

  • More utility functions on AsyncEntityMut

Added utility functions like parent, global_transform, visibility.

  • Replacement of AsyncComponentHandle

component_handle is removed since Handle is no longer a component, use entity.component::<Mesh3d>().asset()? instead.

  • Renamed set to get_mut

  • Deprecated AsyncSystem

Bevy's observer system is an excellent replacement of AsyncSystem's primary purpose. AsyncSystem can be safely replaced by the combination of observers and regular futures.