20tab / UnrealEnginePython

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

using unreal_engine module in a third party text editor #854

Open mr-maul opened 3 years ago

mr-maul commented 3 years ago

Hi everyone. I'm just starting to explore this awesome plugin. I intend to work with python code using PyCharm and it's curious to know if i can import unreal_engine there and how to do this

mr-maul commented 3 years ago

after some searching i found probably right answer that unreal_engine is generated when editor starts (to support blueprint classes and etc.)

1101728133 commented 2 years ago

after some searching i found probably right answer that unreal_engine is generated when editor starts (to support blueprint classes and etc.) How did you solve it ?

mr-maul commented 2 years ago

after some searching i found probably right answer that unreal_engine is generated when editor starts (to support blueprint classes and etc.) How did you solve it ?

You can't actually "solve" it, because unreal_engine is not static module which exists as a file with all functions and etc. This thing (object) is generated dynamically when the editor is started and source code of the Engine and code of your project is available. Then C++ codebase is processed and stored in memory in a way that you can call these functions from python code. Anyway, you can write your own python classes which will wrap your gameplay objects and contain required methods. In these methods your will just call the method provided by unreal_engine . As a result you will able to use many features that are provided by IDE you use

1101728133 commented 2 years ago

@mr-maul Well, thank you