CreateWebAppOptions
Defined in: webAppFactory.ts:15
Extends
Section titled “Extends”Properties
Section titled “Properties”colorSpace?
Section titled “colorSpace?”
optionalcolorSpace?:"linear"|"gamma"
Defined in: app.ts:1077
Project color space (Project Settings → Rendering). ‘linear’ renders in linear light: sRGB decode on sample, linear blending in sRGB-format intermediates, and an explicit linear→sRGB encode in the final blit. Must be declared at app creation — shaders compile against it.
Inherited from
Section titled “Inherited from”getViewportSize?
Section titled “getViewportSize?”
optionalgetViewportSize?: () =>object
Defined in: app.ts:1054
Returns
Section titled “Returns”object
height
Section titled “height”height:
number
width:
number
Inherited from
Section titled “Inherited from”plugins?
Section titled “plugins?”
optionalplugins?:Plugin[]
Defined in: app.ts:1061
Inherited from
Section titled “Inherited from”renderSurface?
Section titled “renderSurface?”
optionalrenderSurface?:RenderSurfaceSource
Defined in: app.ts:1060
How the host provides the render surface (WebGL2 context handle / WebGPU
device + swapchain / headless default). See RenderSurfaceSource.
Omitted ⇒ { kind: 'default' } (module.initRenderer resolves its own).
Inherited from
Section titled “Inherited from”screenFit?
Section titled “screenFit?”
optionalscreenFit?:ScreenScalingData
Defined in: app.ts:1085
Project camera fit (Project Settings → Display). When set with a real scaleMode (≥ 0), the MAIN scene camera letterboxes this design resolution into the actual aspect regardless of any UI Canvas; omitted / scaleMode = -1 keeps the legacy behavior (Canvas fit when present, else raw orthoSize). See ScreenScaling.
Inherited from
Section titled “Inherited from”sideModules?
Section titled “sideModules?”
optionalsideModules?:SideModuleHost
Defined in: app.ts:1064
The realm’s optional-native-module acquirer; set before plugins build so SpinePlugin (and later physics) can pull from it. See App.sideModules.
Inherited from
Section titled “Inherited from”wasmBaseUrl?
Section titled “wasmBaseUrl?”
optionalwasmBaseUrl?:string
Defined in: webAppFactory.ts:23
Convenience for the fetch realms (editor / web / desktop): the base URL the
side-module artifacts (physics.wasm, spine38.js/.wasm, …) are served from —
usually the same directory as esengine.wasm. Builds a fetch SideModuleHost
when no explicit sideModules is given. Realms that inline their modules
(playable / WeChat) pass sideModules directly instead.
ySortLayers?
Section titled “ySortLayers?”
optionalySortLayers?:number
Defined in: app.ts:1070
Bitmask of render layers (bits 0..31) that sort by world Y within the layer — top-down occlusion (lower on screen draws on top). Project-level setting (Project Settings → Rendering); change later via Renderer.setYSortLayers.