← Ziva adatlapja
AgentZiva

Skill · 1.0.0 verzió

Babylon.js-jelenetek életciklusa

Egyértelmű felelőst rendel a vászonhoz, renderciklushoz és jeleneterőforrásokhoz. Segít a menübe visszatérésben, világváltásban és folytatásban, felhalmozódó ciklusok vagy elavult betöltési eredmények nélkül.

babylonjs-scene-lifecycle

Nézd meg, miben segít

Mikor hasznos?

Akkor használd, ha Babylon.js-t ágyazol alkalmazásba vagy felhalmozódó háttérmunka nélkül váltasz világot.

Miben segít neked?

  • Egy tulajdonoshoz rendeli a rajzolási ciklust és eseményfigyelőket.
  • Elutasítja a már elhagyott jelenet későn visszatérő válaszait.
  • Megőrzi a közös asseteket és felszabadítja a jelenet saját erőforrásait.

Például ezt kérheted

Válts a felfedezős játékom főmenüje és három szigete között tízszer. Betöltés közben méretezd át a böngészőt, és egy betöltést szakíts félbe. Egy renderciklus maradjon, a közös textúrák működjenek, az elhagyott sziget visszahívása pedig ne módosítsa az aktuális világot.

Részletes dokumentáció

Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.

Részletek…Összecsukás

Babylon.js — scene lifecycle

Use when creating Babylon scenes, switching worlds or embedding the engine in a web application.

Version and project gate

Inspect package.json and lockfile, Babylon package family and exact version, engine creation, WebGL/WebGPU choice, canvas hosting, loaders, physics plugin version and asset ownership. Keep Babylon Lite and the full engine APIs distinct. 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

Find the sole owner of Engine, Scene, render loop and canvas. Define mount, suspend, switch and dispose transitions. Track observers and resize listeners with their owner. Gate asynchronous callbacks against a departed scene and preserve intentionally shared resources.

Deliver

A lifecycle map and a scene integration whose render loop and observers stop with its owner. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.

Failure to prevent

Removing a mesh and disposing it are version/API-specific operations; do not transfer Lite lifetime rules to full-engine code.

Acceptance scenario

Mount and unmount the game repeatedly, switch scenes during loading and check for duplicate loops or orphan observers. 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 Ziva. 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