create_property_widget#
- omni.kit.window.inspector.property.create_widget.create_property_widget(
- widget: Widget,
- property: str,
- property_type: PropertyType,
- range_from=0,
- range_to=0,
- speed=1,
- **kwargs,
Create a UI widget connected with a setting.
If ``range_from`` >= ``range_to`` there is no limit. Undo/redo operations are also supported, because changing setting goes through the
omni.kit.commands` module, using :class:`.ChangeSettingCommand.- Parameters:
setting_path – Path to the setting to show and edit.
property_type – Type of the setting to expect.
range_from – Limit setting value lower bound.
range_to – Limit setting value upper bound.
- Returns:
ui.Widgetconnected with the setting on the path specified.