Skip to content

Commit 92bc156

Browse files
authored
Merge pull request #357 from stevenshan/master
updated PlottingGraphWithMatplotlibAndUnrealEnginePython.md
2 parents debb296 + a7e500b commit 92bc156

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class PlotComponent:
194194
dpi = 72.0
195195
self.texture = ue.create_transient_texture(width, height, EPixelFormat.PF_R8G8B8A8)
196196

197-
self.uobject.get_owner().StaticMesh.OverrideMaterials[0].set_material_texture_parameter('Graph', self.texture)
197+
self.uobject.get_owner().StaticMeshComponent.OverrideMaterials[0].set_material_texture_parameter('Graph', self.texture)
198198

199199
self.fig = plt.figure(1)
200200
self.fig.set_dpi(dpi)

tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython_Assets/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def begin_play(self):
1414
dpi = 72.0
1515
self.texture = ue.create_transient_texture(width, height, EPixelFormat.PF_R8G8B8A8)
1616

17-
self.uobject.get_owner().StaticMesh.OverrideMaterials[0].set_material_texture_parameter('Graph', self.texture)
17+
self.uobject.get_owner().StaticMeshComponent.OverrideMaterials[0].set_material_texture_parameter('Graph', self.texture)
1818

1919
self.fig = plt.figure(1)
2020
self.fig.set_dpi(dpi)

0 commit comments

Comments
 (0)