20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.77k stars 753 forks source link

Need help with autocomplete #420

Open MilkyHearts opened 6 years ago

MilkyHearts commented 6 years ago

Hello Im trying to make a autocomplete for my text editor, I used the "generate_sublime_text_autocomplete.py" file as a starting point but had a few issues with it. the file has random spaces at some points or symbols like this

"trigger": "BP_Sky_Sphere_C.Sky Sphere mesh", "contents": "BP_Sky_Sphere_C.Sky Sphere mesh"

"trigger": "BP_Sky_Sphere_C.Colors determined by sun position", "contents": "BP_Sky_Sphere_C.Colors determined by sun position"

"trigger": "ThirdPerson_AnimBP_C.IsInAir?", "contents": "ThirdPerson_AnimBP_C.IsInAir?"

also some functions didnt get generated "material_factory.factory_create_new" when I type "material_factory." I dont get the autocomplete for "factory_create_new"

rdeioris commented 6 years ago

Hi, that scripts is only a prototype and it should absolutely use low-level names instead of the "prettified version".

Regarding low-level api functions, they should be added via the dir(unreal_engine_python) python feature

Schizo commented 6 years ago

I'm using an external Editor with anaconda. Anaconda automatically detect's all the libraries in the pythonpath but I'm not familiar with how in UEP the dlls are being generated. For example in Pybind there is a dedicated field docstring for the exposed function.

It would be actually cool, if there would be autocomplete for external IDE's at least.