Python in Unreal at runtime

I use a python script. After the packaged, it cannot be executed during the running phase of the game. I know that the script cannot be executed in the runtime state, but I want to find a solution

Python is for editor scripting to solve production problems rather than encapsulate.

But it looks like you can run platform executions, maybe run external python script at runtime.

1 Like
3 Likes

This is not a good idea, I suggest not using python other than within the editor.
Even if you have to use it, don’t glue it to Unreal, use it like your own library, maintaining the python interface could waste lots of time.

UE4.27 is not enable :persevere:

OK,But It only excute in edit not at runtime

As far as I know, it’s the only Python integration with runtime out there. It does look like it’s not maintained at the moment, but it probably wouldn’t be too difficult to get it to work between in 4.27 if it’s last working version was 4.26… i didn’t look that deep into it.

i do know a few games have shipped that used it, although for the life of me i can’t remember which ones right off. I was mindboggled that they were using Python as an integrated language.

I’m not sure that Python really gives you any particularly great features for use with Unreal, but, still, as a polyglot it’s nice to see options.

since we still seem to be forever away from getting an official scripting language back, i do wonder if it would be worth it to attempt to build a plugin that is designed specifically for integrating other languages. There’s out-dated V8, Python, maybe others, and I think LUA is still maintained out there somewhere.

just thinking outloud

1 Like

Oh,Thanks ,It’ also used in UE4.27 :+1: