get_main_window#

omni.kit.mainwindow.get_main_window() MainWindow#

Returns the global instance of the MainWindow.

This function allows access to the MainWindow instance that is created and managed by the MainWindowExtension. It uses a global variable to store the instance so it can be retrieved from anywhere within the application.

Returns:

The global MainWindow instance if it has been created, otherwise None.

Return type:

MainWindow