Three.js-Szenenverantwortung
Legt fest, was einer Szene gehört und was Szenenwechsel überlebt. Ordnet Render-Schleifen, Listener und laufende Ladevorgänge klar zu und erleichtert wartbare Weltwechsel sowie Einbettung.
threejs-scene-ownership
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze dies bei doppelten Animationsschleifen durch Öffnen oder Navigation.
Wobei hilft er dir?
- Trennt dauerhaften Spielzustand von entbehrlichen Darstellungsknoten.
- Verfolgt Listener und offene Ladevorgänge unter klaren Verantwortlichen.
- Definiert Pause, Fortsetzung und Abbau ohne Zerstörung gemeinsamer Assets.
Das könntest du fragen
Wechsle in unserem Erkundungsspiel zwischen Stadt und Untergrund und behalte das Inventar. Entferne die Spielfläche während eines langsamen Modell-Downloads und öffne sie erneut. Es bleibt eine Animationsschleife, und alte Eingabe-Listener steuern die neue Szene nicht.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
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.
Enthaltene Dateien 1
SKILL.md
