Skip to content

Search

เอกสาร

widget_inspector

The rows an inspector reads: the node and component it shows. The widget_inspector component of the Balaur game engine: its 4 properties, and the…

ในหน้านี้

ui · 4 properties · UI

The rows an inspector reads: the node and component it shows.

In a scene, widget_inspector is the node key that applies it. A script reaches each property below as a field on node.widget_inspector: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_inspector.get() and node.widget_inspector.set(table).

Properties

property type default description
component string — The component an inspector shows a row of each property of, read off the registry's schema and the node every pass. The widget's options names the properties and their order; empty shows them all, sorted. on_change hears { property, path, value } for an edit, path being the steps into a list, map or record, and verb in place of value where an asset is to be embedded or saved
label_width float 0 How wide an inspector's label column is, in design pixels; 0 takes a third of its width. Under wrap each label goes above its control instead At least 0.
relative_to string — The folder an inspector shows a file's path from: a value under it loses that much of its front
target string — The node an inspector shows, by path: as scene.get_node takes it, or as node.path() spells it