Engine API Reference - v2.22.0-beta.29
    Preparing search index...

    Class AppOptions

    AppOptions holds configuration settings utilized in the creation of an AppBase instance. It allows functionality to be included or excluded from the AppBase instance.

    Index
    assetPrefix: string

    Prefix to apply to asset urls before loading.

    batchManager: typeof BatchManager

    The BatchManager.

    componentSystems: typeof ComponentSystem[] = []

    The component systems the app requires.

    elementInput: ElementInput

    Input handler for ElementComponents.

    gamepads: GamePads

    Gamepad handler for input.

    graphicsDevice: GraphicsDevice

    The graphics device.

    keyboard: Keyboard

    Keyboard handler for input.

    lightmapper: typeof Lightmapper

    The lightmapper.

    mouse: Mouse

    Mouse handler for input.

    physicsWorld: PhysicsWorld

    The physics backend used to simulate rigid bodies, collisions and joints, such as AmmoPhysicsWorld or NullPhysicsWorld. When set, the application installs it into the RigidBodyComponentSystem during AppBase#init, so AppOptions#componentSystems must include RigidBodyComponentSystem. A useful simulation also requires CollisionComponentSystem - rigid bodies and triggers obtain their shapes from collision components - and JointComponentSystem if joints are used. The rigid body system registers itself as the world's contact listener. When omitted, an AmmoPhysicsWorld is created automatically once application libraries have loaded, if the Ammo.js WasmModule is present. The application takes ownership of the world and destroys it with the application.

    resourceHandlers: typeof ResourceHandler[] = []

    The resource handlers the app requires.

    scriptPrefix: string

    Prefix to apply to script urls before loading.

    scriptsOrder: string[]

    Scripts in order of loading first.

    soundManager: SoundManager

    The sound manager

    TouchDevice handler for input.

    xr: typeof XrManager

    The XrManager.