Skip to content

Commit 163878d

Browse files
author
Roberto De Ioris
authored
Update plotter.py
1 parent f3fee2a commit 163878d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython_Assets

‎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().StaticMeshComponent.OverrideMaterials[0].set_material_texture_parameter('Graph', self.texture)
17+
self.uobject.get_owner().StaticMesh.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)