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

(set) visible: BoolSignal Will instruct picker to be visible or not visible, according to passed boolean value.

Methods

MethodDescription

configure

configure(configuration: {selectedIndex?: int, items: [{image_texture: ImageTexture}]}): 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.