Bevy-állapotok és betöltés
A menüt, betöltést és játékot az entitások, erőforrások élettartamához igazítja. Megakadályozza, hogy egy már elhagyott állapot félkész munkája módosítsa a következő pályát.
bevy-states-loading
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha menük, betöltőképernyők és játékmenet között megbízható átmenetet és takarítást szeretnél.
Miben segít neked?
- Az entitásokat és erőforrásokat az életciklusukért felelős állapothoz rendeli.
- Csak a szükséges erőforrások elkészültekor indítja a játékot, és jelzi a betöltési hibákat.
- Megelőzi, hogy elhagyott állapot későbbi pályát módosítson vagy eseményfigyelőket halmozzon.
Például ezt kérheted
A kazamatás játékhoz készíts menü-, betöltés- és harcállapotot. Félúton szakítsd meg a betöltést, térj a menübe, és indíts másik kazamatát. Csak a második hozzon létre ellenfelet, a szükséges assetek legyenek készen, és váltáskor ne halmozódjanak régi entitások.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Bevy — states loading
Use when implementing Bevy menus, loading, level transitions or state-dependent cleanup.
Version and project gate
Inspect Cargo.toml, Cargo.lock, Rust toolchain, exact Bevy release, plugin compatibility, feature selection, schedules, state definitions, asset roots and target backend. Read the matching migration guide before using newer examples. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Declare which entities and resources belong to each state. Gate play on required asset readiness and surface failed dependencies. Choose entry/exit/update hooks from the installed API and prevent a departed state’s work from mutating the next level.
Deliver
A state/ownership table and a full menu-load-play-exit cycle. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Leaving a state does not automatically prove every manually spawned entity or resource was cleaned up.
Acceptance scenario
Change state during loading, return to the menu, load again and check that entity and listener counts do not accumulate. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Talon. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Csomagban lévő fájlok 1
SKILL.md
