Python API Documentation
I’m exposing Python functions as blueprint nodes with:
unreal.ufunction(meta=None, ret=None, params=None, override=None, static=None, pure=None, getter=None, setter=None)
For instance :
@unreal.ufunction(ret=str, static=True, meta=dict(Category=“Python Methods”))
return str(sys.version_info.major) + “.” + str(sys.version_info.minor)
which correctly returns ‘3.7’ as a string which can be reused by further blueprint nodes.
However, the UE4 Python API documentation does not enumerate the various “ret” types; bool, int, and str were obvious, but…
…for instance, what if I want to “ret” an “unreal.Array(int)”, or to “ret” a Python list?
Also, it’d be great to be able to give meaningful (blueprint) names to both input and output parameters, instead of “Returned value”; how I can achieve this?
Thanks in advance!