bevy-app-resources
Installation
SKILL.md
Bevy app resources
When to use
Load this when data or logic must exist for the whole app: one clock, one ruleset, startup spawn, or an ordered pair of systems. Pair with bevy-data-resources for the component-versus-resource split.
ECS shape
- App. The Apps page: an
Appcontains aWorldand the outer loop. It initializes resources (one copy), adds systems to aSchedule, and imports otherAppchanges through plugins. - Resources.
Resource,Res,ResMut, andinsert_resource(Resources page).Timearrives fromadd_plugins(DefaultPlugins). - Plugins. The Resources page implements
Pluginand inserts the resource insidebuild.DefaultPluginsis the plugin set that addsTime. Name only the plugins this page documents. - Schedules.
add_systems(Startup, ...)runs once before other systems.add_systems(Update, ...)is the repeating schedule in the ECS page..chain()orders systems that must see each other's writes.bevy::ecs::messagenamesFixedUpdateonly as the schedule after whichsignal_message_update_systemruns. Fixed-timestep clock types stay in bevy-character-movement. - States. App-wide modes are
bevy::state, not a global node. See bevy-state-machines.