Call a blueprint class function from Python

It is possible to set variables of blueprint classes from Python as shown here: Can you edit a Blueprint Variable from Python? - Editor Scripting - Unreal Engine Forums. However, it is possible to call a function that is marked as “Call in Editor”?

My specific use case is to spawn and configure a blueprint class in a level in the editor.

Once you have a reference to your Blueprint you can call one of his functions by using the method call_method(...)

Methods inherited from _ObjectBase:

x.call_method(name, args=tuple(), kwargs=dict()) → object – call a method on this object via Unreal reflection using the given ordered (tuple) or named (dict) argument data - allows calling methods that don’t have Python glue


1 Like