OptionItem#
- class omni.kit.property.usd.OptionItem(display_name: str, value: int)#
Bases:
AbstractItem
A class representing an option item for UI selection.
This class encapsulates an option item that can be used in UI components, representing a selectable option with a display name and an associated value.
- Parameters:
display_name (str) – The name of the option as displayed in the UI.
value (int) – The value associated with the option, typically used for identification or selection handling.
Methods
__init__
(display_name, value)Initializes a new instance of the OptionItem.
- __init__(display_name: str, value: int)#
Initializes a new instance of the OptionItem.