@@ -0,0 +1,1197 @@
+import unreal_engine as ue%0A%0Afrom unreal_engine import SWindow, SButton, STextBlock, SEditableTextBox, SMultiLineEditableText, SGridPanel, SHorizontalBox, SPythonEditorViewport%0Afrom unreal_engine.classes import Blueprint%0A%0Adef clicked(geometry, pointer_event):%0A    ue.log('Hello')%0A    ue.log(geometry.fields())%0A    ue.log(pointer_event.fields())%0A    return True%0A%0Adef clicked2():%0A    ue.log('Test')%0A    return True%0A%0Awindow = SWindow().resize(1024, 576).set_title('Hello World')%0A%0Ahorizontal = SHorizontalBox()%0A%0Abutton = SButton().set_content(STextBlock().set_text('Click ME !'))%0Abutton.bind_on_mouse_button_down(clicked)%0Abutton.bind_on_clicked(clicked2)%0A%0Abox = SEditableTextBox()%0A%0Aeditor = SMultiLineEditableText()%0Aeditor.set_text('Hello')%0A%0Agrid = SGridPanel()%0A%0Agrid.add_slot(button, 0, 0)%0Agrid.add_slot(box, 0, 1)%0Agrid.add_slot(editor, 0, 2)%0A%0Ahorizontal.add_slot(grid, v_align=2, h_align=2).add_slot(STextBlock().set_text('Second'), v_align=2, h_align=2)%0A%0Aviewport = SPythonEditorViewport()%0A%0Aworld = viewport.get_world()%0Abear_bp = ue.load_object(Blueprint, '/Game/Character3_Blueprint')%0A%0Abear = world.actor_spawn(bear_bp.GeneratedClass)%0A%0Ahorizontal.add_slot(viewport)%0A%0Awindow.set_content(horizontal)%0A

Create slate_example.py