Stride-scriptek életciklusa
A futás és várakozás igénye alapján választ szinkron vagy aszinkron szkriptet. Kimondja a sorrendet és megszakítást, hogy törölt entitás ne kapjon késői műveletet és ne akadjon a játékciklus.
stride-scripts-lifecycle
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha entitástörlés után háttérmunka vagy dupla kezelő marad.
Miben segít neked?
- A futás vagy várakozás módjához választ scripttípust.
- Az entitás megszakításához köti a feliratkozást és várakozó munkát.
- Kerüli a nem garantált sorrendet és játékhurok-blokkolást.
Például ezt kérheted
A küldetésadó NPC késleltetett beszélgetést indít és animációra vár. A várakozás vége előtt hagyd el a jelenetet, majd térj vissza. Szakítsd meg a régi NPC munkáját, töröld feliratkozásait és rögzítsd a szükséges sorrendet: ne jelenjen meg szellempárbeszéd, a főciklus pedig fusson tovább.
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
Stride — scripts lifecycle
Use when implementing Stride startup, synchronous or asynchronous scripts and entity teardown.
Version and project gate
Inspect Solution/project packages, exact Stride version, Game Studio/editor environment, asset and prefab files, Startup/Sync/AsyncScript usage, physics packages/backends, graphics profile and target platform. Do not assume every editor or physics feature exists on every host. 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
Choose the script type from when work should run or await. Define Start/Update/Execute/Cancel ownership according to the installed API. Pair subscriptions and asynchronous work with cancellation when the entity leaves the scene. Do not rely on equal-priority execution order.
Deliver
A script lifecycle/ordering map and focused implementation with repeatable cleanup. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
AsyncScript is scheduled game work, not permission to block the main loop or ignore entity cancellation.
Acceptance scenario
Remove and re-add the entity, cancel during an await and unload the scene without duplicated handlers or late state writes. 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 Strider. 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
