# Knowledge Base: How To Expose C++ function to Python and Editor Utility Widgets

**URL:** <https://forums.unrealengine.com/t/knowledge-base-how-to-expose-c-function-to-python-and-editor-utility-widgets/264993>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [December 8, 2021, 11:05pm UTC](https://forums.unrealengine.com/t/knowledge-base-how-to-expose-c-function-to-python-and-editor-utility-widgets/264993 "2021-12-08T23:05:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RudyTriplett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rudytriplett/32/1197584_2.png) [@RudyTriplett](https://forums.unrealengine.com/u/RudyTriplett)\
**Post date:** [December 8, 2021, 11:05pm UTC](https://forums.unrealengine.com/t/knowledge-base-how-to-expose-c-function-to-python-and-editor-utility-widgets/264993/1 "2021-12-08T23:05:04Z")

</div>

Mar 9, 2021.Knowledge  
Article written by Cody A.  
Many useful editor functions are exposed to scripting through Editor Utility Widgets or Python, but there are still some features that aren’t covered by our existing edi…  
  
[https://dev.epicgames.com/community/learning/knowledge-base/KKjp/unreal-engine-how-to-expose-c-function-to-python-and-editor-utility-widgets](https://dev.epicgames.com/community/learning/knowledge-base/KKjp/unreal-engine-how-to-expose-c-function-to-python-and-editor-utility-widgets)

---

<div class="post-metadata">

**Author:** ![DW\_MaxR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DW\_MaxR](https://forums.unrealengine.com/u/DW_MaxR)\
**Post date:** [June 27, 2025, 9:15am UTC](https://forums.unrealengine.com/t/knowledge-base-how-to-expose-c-function-to-python-and-editor-utility-widgets/264993/2 "2025-06-27T09:15:19Z")

</div>

Hello!

That’s really useful to know, but that would be nice to add information about how to use such a function in Python afterwards, as it is not that straightforward to guess 🙂

In fact the c++ blueprint library is automatically added as a module to the `unreal` package and the BlueprintCallable function it contains are directly accessible, so that would look like:  
`unreal.MyScriptingLibraryBPLibrary.MyScriptingLibrarySampleFunction(3.1415)`
