# How can i know UFunction contain how many parameters with default value?

**URL:** <https://forums.unrealengine.com/t/how-can-i-know-ufunction-contain-how-many-parameters-with-default-value/381061>\
**Category:** C++\
**Tags:** uht, unreal-engine, question, CPP\
**Created:** [January 6, 2017, 7:49am UTC](https://forums.unrealengine.com/t/how-can-i-know-ufunction-contain-how-many-parameters-with-default-value/381061 "2017-01-06T07:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asqbtcupid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asqbtcupid](https://forums.unrealengine.com/u/asqbtcupid)\
**Post date:** [January 6, 2017, 7:49am UTC](https://forums.unrealengine.com/t/how-can-i-know-ufunction-contain-how-many-parameters-with-default-value/381061/1 "2017-01-06T07:49:27Z")

</div>

How can i know UFunction contain how many parameters with default value?

---

<div class="post-metadata">

**Author:** ![Steve\_Robb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Robb](https://forums.unrealengine.com/u/Steve_Robb)\
**Post date:** [January 6, 2017, 11:56am UTC](https://forums.unrealengine.com/t/how-can-i-know-ufunction-contain-how-many-parameters-with-default-value/381061/2 "2017-01-06T11:56:02Z")

</div>

Hi,

This cannot be known in general, but you can check the UFunction’s “CPP\_Default\_” metadata to see if a given parameter has a default argument, and the value of that default.

However, only default arguments of certain types and values can be parsed and, as it’s metadata, this information only exists in builds with WITH\_METADATA defined, which is basically editor-only.

Hope this helps,

Steve
