ToggleExtension
- class omni.kit.window.extensions.ext_commands.ToggleExtension(ext_id: str, enable: bool)
Bases:
CommandToggle extension Command. Enables/disables an extension.
- Parameters
ext_id (str) – Extension id.
enable (bool) – Enable or disable.
Methods
__init__(ext_id, enable)Initializes the command to toggle an extension's enabled state.
do()Executes the command to enable or disable the specified extension.
- __init__(ext_id: str, enable: bool)
Initializes the command to toggle an extension’s enabled state.
- do()
Executes the command to enable or disable the specified extension.