ControllerHost

open external class ControllerHost(source)

Creates an instance of a ControllerHost. Typically, a ControllerHost is created by the Scene constructor and accessed via Scene.controllerHost.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The number of controllers registered to this host.

Functions

Link copied to clipboard
fun registerController(controller: Controller, element: HTMLElement, priority: Double? = definedExternally)

Registers a controller implementation with this host.

Link copied to clipboard
fun unregisterController(controller: Controller, element: HTMLElement)

Unregisters a controller implementation from this host.

Link copied to clipboard
fun update(scene: Scene, time: JulianDate)

Invoked once per frame by the host scene. Updates all registered controllers in order of their priority.