LayerPropertyWidgets#
- class omni.kit.property.layer.widgets.LayerPropertyWidgets#
Bases:
IExt
A class responsible for managing layer property widgets in an extension.
This class handles the registration and unregistration of custom property widgets related to layers within an NVIDIA Omniverse extension. It also manages a selection notifier that updates the widgets based on the current layer selection. Upon startup, this class registers the necessary widgets and subscribes to extension enable events to maintain the registration state. On shutdown, the class ensures that resources are properly released and widgets are unregistered. The class is designed to be used as a singleton within the scope of the extension.
Typically, this class is not instantiated directly by the user but is managed by the Omniverse extension framework.
Methods
__init__
()Initializes the LayerPropertyWidgets extension.
Called when the extension is shutting down.
on_startup
(ext_id)Called when the extension starts up.
- __init__()#
Initializes the LayerPropertyWidgets extension.
- on_shutdown()#
Called when the extension is shutting down.
- on_startup(ext_id)#
Called when the extension starts up.
- Parameters:
ext_id (str) – The ID of the started extension.