ThreeApp
A component script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2ThreeApp Runs a three.js project on the host entity. `entry` is the VFS path of the project's main ES module (e.g. /zero/source/projects/hello_cube/main.js); imports of 'three' resolve to the ThreeZero shim and relative './file.js' specifiers resolve against the project folder. The app boots on the first play-mode tick, its requestAnimationFrame / setAnimationLoop callbacks run once per engine frame, and everything it spawned is torn down when play mode ends or the component is removed.
stopApp( ) → void
startApp( ) → void
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
editorUpdate(_dt: ?) → void
Returning to edit mode tears the app down so play-session entities never linger in the authoring view.
| arg | type | description |
|---|---|---|
| _dt | ? |
onDisable( ) → void
onDestroy( ) → void
status( ) → table
restart( ) → void
runJs(code: string) → string
Devtools console: run a JavaScript snippet inside the app's VM and return the completion value rendered as a string.
| arg | type | description |
|---|---|---|
| code | string |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.