I want to execute procedure “MyProc” from another py - file.
UE 5.0.3
main.py
import unreal
unreal.log("Script Started")
import module
level_sequence=module.MyProc()
module.py
def MyProc():
print("Procedure executed")
return
UE write “LogPython: Error: AttributeError: module ‘module’ has no attribute ‘MyProc’”
What’s wrong?