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
Copy file name to clipboardExpand all lines: tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,8 @@ Time to check if all is working well.
62
62
63
63
We will start by generating a texture asset. The content of this texture will be generated by matplotlib.
64
64
65
+
You can use the included python editor to edit your scripts (it is under Wndow/Python Editor), or your favourite one SsublimeText, Vim, PyCharm...) just ensure scripts are under the Content/Scripts directory of your project.
66
+
65
67
The steps are generating a texture in memory, plotting the graph, transferring the graph data into texture memory, save it as an asset and opening the related editor:
66
68
67
69
```python
@@ -138,6 +140,13 @@ The first blueprint we are about to create, is the 'carpet' (we call it Graph_Bl
The only relevant part is the update_graph function that is triggered by the 'OnGraphDataUpdated' event dispatcher.
188
+
189
+
This function receives as the 'platform' argument the Actor triggering the event. This Actor (that we will create in the next phase), expose the counters of the overlapping cubes. We use that values to re-generate our pie chart and uploading it into texture memory whenever the event is triggered
0 commit comments