The options of the bridge class, see UIContext.options.
The project assets.
The values of the fields a class that extends UIBridge declares with DefineField, by field name.
ReadonlysceneThe active scene, or undefined between scenes. To follow it, use
watch(({ scene }) => scene).
The world.
Listens for an event on the world. The listener is removed when the interface is destroyed, if it was not removed before.
The event type.
Receives the event.
A function that removes the listener.
Follows a value of the game. The bridge evaluates selector every frame while
the value has listeners, and reports it when it changes.
Reads the value.
Optionalequals: (a: T, b: T) => boolean
Compares two values. By default values are compared with
Object.is, and two arrays are equal when their items are.
The value to read and follow.
What
onInitof the interface module receives: the running game, as the interface needs it.