Three.js-jelenetek tulajdonlása
Meghatározza, mi tartozik egy jelenethez, és mi él tovább a váltás után. Rendezi a renderciklusok, eseményfigyelők és folyamatban lévő betöltések felelősségét.
threejs-scene-ownership
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha megnyitás vagy navigáció dupla animációs ciklust indít.
Miben segít neked?
- Elválasztja a tartós játékállapotot az eldobható megjelenítési csomóponttól.
- Kifejezett gazda alatt követi a figyelőt és függő betöltést.
- Közös tartalom törlése nélkül tervezi a szünetet, folytatást és bontást.
Például ezt kérheted
Válts a felfedezős játék városa és föld alatti pályája között a felszerelés megőrzésével. Lassú modellbetöltés közben távolítsd el a játékfelületet, majd nyisd újra. Egy animációs ciklus maradjon, és régi bemeneti figyelő ne vezérelhesse az új jelenetet.
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
Three.js — scene ownership
Use when embedding Three.js, restructuring scene graphs or switching game worlds.
Version and project gate
Inspect Three.js revision, renderer/backend, addons import style, bundler, color-management conventions, animation loop owner, scene scale, glTF/decoder versions and existing physics wrapper. 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
Identify the owner of renderer, scene, camera, controls and animation loop. Keep gameplay state outside disposable presentation nodes. Track event listeners and pending loads per owner. Define suspend/resume/unmount behavior and release only resources owned by the leaving scene.
Deliver
A scene/resource ownership map and a complete mount-to-unmount integration. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Removing an Object3D does not dispose its geometry, materials or textures. Shared assets must outlive individual instances.
Acceptance scenario
Mount twice, switch scenes while loading and confirm that no abandoned loop or event handler continues. 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 Vex. 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
