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 2f4bf95
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+58-1Lines changed: 58 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,22 @@ If you want to package your project (it is required only if you need to have a p
63
63
64
64
If you want to package without python, just remember to change the UnrealEnginePython.uplugin to have this line: https://github.com/20tab/UnrealEnginePython/blob/master/UnrealEnginePython.uplugin#L20 set as "Editor" instead of "Runtime"
65
65
66
+
# Binaries installation on MaxOSX
67
+
68
+
Check in the releases page (https://github.com/20tab/UnrealEnginePython/releases) if there is a binary version that matches your configuration (otherwise open an issue asking us for it [please specify the python version too]) and download it.
69
+
70
+
Binary releases for MacOSX expects an official python installation (the packages you get from python.org).
71
+
72
+
Create (if it does not already exist) a Plugins directory in your project root directory (at the same level of Content/ and the .uproject file) and unzip the plugin into it. If your project is named FooBar you will end with FooBar/Plugins/UnrealEnginePython.
73
+
74
+
Open your project and go to the Edit/Plugins menu. Go to the bottom and under "Project/Scripting Languages" enable UnrealEnginePython.
75
+
76
+
Restart your project and you should see the PythonConsole under the "Window/Developer Tools" menu
77
+
78
+
Binary releases are mainly useful for editor scripting, if you want to package your project for distribution and you need the python runtime, you need a source release (see below).
79
+
80
+
If instead, you want to package your project without python, just remember to change the UnrealEnginePython.uplugin to have this line: https://github.com/20tab/UnrealEnginePython/blob/master/UnrealEnginePython.uplugin#L20 set as "Editor" instead of "Runtime"
81
+
66
82
# Installation from sources on MacOSX
67
83
68
84
* install the latest official python distribution from python.org (the installation will end in the "/Library/Frameworks/Python.framework/Versions/X.Y" directory).
@@ -872,7 +888,7 @@ class Ball:
872
888
873
889
Now we create (at runtime !!!) a whole new PyActor:
874
890
875
-
```py
891
+
```python
876
892
classSuperHero:
877
893
defbegin_play(self):
878
894
# spawn a new PyActor
@@ -890,6 +906,47 @@ class SuperHero:
890
906
pass
891
907
```
892
908
909
+
Spawning Notes
910
+
--------------
911
+
912
+
Remember that only Actors can be spawned in a world, and that even the editor is a valid world:
913
+
914
+
```python
915
+
import unreal_engine as ue
916
+
from unreal_engine.classes import Actor, Character
@@ -169,3 +171,8 @@ ret = ue.message_dialog_open(ue.APP_MSG_TYPE_YES_NO, "Do you want to shot ?")
169
171
if ret == ue.APP_RETURN_TYPE_YES:
170
172
ue.log('You choose "YES"')
171
173
```
174
+
175
+
Multiline mode
176
+
--------------
177
+
178
+
If a statement ends with ':' the python console will assume an 'incomplete' commands and will wait for the next line NOT starting with a space to issue the instructions. This mode allows you to enter functions, classes, cycles in the console.
0 commit comments