20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.74k stars 743 forks source link

Read Variable from blueprint #389

Open Dahandla opened 6 years ago

Dahandla commented 6 years ago

Quick question from a python beginner, How can a read the value of a variable in my python script from an existing blueprint.

I have a variable in my python script, and I what to access it and read the value in my blueprint, is there a way to do this?

rdeioris commented 6 years ago

Hi, the python component exposes a 'CallPythonComponentMethodString' function that you can use for calling python methods from a blueprint.

Basically it will call the method from the python class you mapped to the PythonComponent

Dahandla commented 6 years ago

Thank you, I'll try that. :)