Documentation / scene / AppCreationOptions
Interface: AppCreationOptions
Defined in: libs/scene/src/app/app.ts:86
Creation options for Application.
Provides the canvas, device backend, and optional runtime and device configuration.
Extends
Properties
canvas
canvas:
HTMLCanvasElement
Defined in: libs/scene/src/app/app.ts:64
Target canvas element to attach the rendering device to.
Inherited from
backend
backend:
DeviceBackend
Defined in: libs/scene/src/app/app.ts:68
Device backend implementation to use for GPU creation (e.g., WebGL/WebGPU backend).
Inherited from
enableMSAA?
optionalenableMSAA?:boolean
Defined in: libs/scene/src/app/app.ts:73
Whether to enable multi-sample anti-aliasing (MSAA) if supported by the backend. Defaults to false.
Inherited from
pixelRatio?
optionalpixelRatio?:number
Defined in: libs/scene/src/app/app.ts:77
Device pixel ratio used when creating the device. Defaults to window.devicePixelRatio or 1.
Inherited from
runtimeOptions?
optionalruntimeOptions?:object
Defined in: libs/scene/src/app/app.ts:90
Options for the runtime scripting system.
VFS?
optionalVFS?:VFS
Virtual file system used to load scripts. Defaults to HttpFS at '.' if not provided.
scriptsRoot?
optionalscriptsRoot?:string
Root directory for script files. Defaults to '/'.
editorMode?
optionaleditorMode?:EditorMode
Whether the application is running in editor mode. Should be true for user applications.
enabled?
optionalenabled?:boolean
Whether the runtime scripting system is enabled. Should be true for user applications.
screen?
optionalscreen?:ScreenConfig
Screen configuration