20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.7k stars 737 forks source link

Get access to python class object #859

Open ArtTemiy opened 3 years ago

ArtTemiy commented 3 years ago

I created a PyActor bp and configered it with class 'Hero' (like in tutorial). Then I added several methods and properties to class and want to work with them from blueprints. def FunnyNewMethod(self, a_word: str): ue.print_string('This is a word from blueprint: ' + a_word)

Node in blueprints require target object of class 'Hero', and I don't know how to get it. Аннотация 2020-08-23 184940