You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf429c6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: tutorials/WritingAColladaFactoryWithPython.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,46 @@ Obviously if we reimport the duck with the current code, its rotation will be wr
239
239
240
240
## Adding a GUI to the importer: The Slate API
241
241
242
+
Slate is the GUI technology of Unreal Engine. It is based on tons of preprocessor macros to simplify readability to the developer building graphical interfaces. Its python wrapper tries to resemble this spirit by adapting it to the pythonic style. Note: the slate python api wrapper development has been completely sponsored by Kite & Lightning (http://kiteandlightning.la/). Big thanks to them.
243
+
244
+
A Python Slate interface looks like this:
245
+
246
+
```python
247
+
from unreal_engine import SWindow, SVerticalBox, SHorizontalBox, SButton, STextBlock, SBorder, FLinearColor
248
+
from unreal_engine.enums import EHorizontalAlignment, EVerticalAlignment
249
+
250
+
import unreal_engine as ue
251
+
252
+
SWindow(title='Hello I am Slate', client_size=(1024, 512))(
253
+
SVerticalBox()
254
+
(
255
+
STextBlock(text='I am the first top vertical item, without alignment'),
0 commit comments