Skip to content

Instantly share code, notes, and snippets.

@rondreas
Created March 12, 2020 10:55
Show Gist options
  • Save rondreas/6f4fdf821679be1082365d8d6d49d1c2 to your computer and use it in GitHub Desktop.
Save rondreas/6f4fdf821679be1082365d8d6d49d1c2 to your computer and use it in GitHub Desktop.
Open the Widget for a Blueprint Widget Utility
"""
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