Created
March 12, 2020 10:55
-
-
Save rondreas/6f4fdf821679be1082365d8d6d49d1c2 to your computer and use it in GitHub Desktop.
Open the Widget for a Blueprint Widget Utility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Open the Widget for a Blueprint Widget Utility | |
""" | |
import unreal | |
def main(): | |
asset = unreal.EditorAssetLibrary.load_asset( # replace this asset name with the path to your blutility widget | |
"/Game/Editor/EditorUtilities/MyBlutilityWidget.MyBlutilityWidget" | |
) | |
editorUtilitySubsystem = unreal.EditorUtilitySubsystem() | |
editorUtilityWidget = editorUtilitySubsystem.spawn_and_register_tab(asset) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment