20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.75k stars 746 forks source link

GetNumVertices in StaticMesh is missing #794

Open bbbchs opened 4 years ago

bbbchs commented 4 years ago

Hi! I need to get number of vertices from static mesh. There is a C++ method called GetNumVertices. But I can't find it in sm.functions() I tried call it like sm.call_function('GetNumVertices', 0) but got an exception "Exception: unable to find function"

Is there a way to call methods from C++ API that are not exposed?

Best regards

bbbchs commented 4 years ago

The same goes to UMaterial::GetUsedTextures Is it possible to call it from Python without exposing it through C++ to Python manually?