NativeUIModule Overview
NativeUIModule Overview
Picker

Picker

The Picker class describes an object controlling native picker behavior.

Properties

PropertyDescription
selectedIndex
(get) selectedIndex: ScalarSignal
(set) selectedIndex: ScalarSignal


Represents the index of the selected item in the picker.
visible
(get) (Not Available)
(set) visible: BoolSignal


Will instruct picker to be visible or not visible, according to passed boolean value.

Methods

MethodDescription
configure
configure(config: {items: Array<{id?: string, image_texture: ImageTexture | string, title?: string}>, selectedIndex?: number}): Promise<void>


Configures the picker with a given JSON configuration.
The configuration consists of an optional initial selected index (0 will be used if not specified) and a list of items.
For items you must specify a name of an uncompressed texture which will be used as the picker item image.

Was this article helpful?