# How to instantiate a custom USTRUCT in Python

**URL:** <https://forums.unrealengine.com/t/how-to-instantiate-a-custom-ustruct-in-python/1333681>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 15, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-instantiate-a-custom-ustruct-in-python/1333681 "2023-10-15T21:14:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvininorge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alvininorge](https://forums.unrealengine.com/u/Alvininorge)\
**Post date:** [October 15, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-instantiate-a-custom-ustruct-in-python/1333681/1 "2023-10-15T21:14:14Z")

</div>

I want to have a UPORPERTY in an DataAsset that is an array of custom USTRUCT. Now I can successfully construct and assign TArray of primitive types using the native python array, but I have trouble instantiating any object of USTRUCT type. Some other post said after enabling the developer mode I can call `unreal.MyCustomStruct()` directly but I found it no luck. Does anyone have previous experience on this?
