# FIntPoint default value

**URL:** <https://forums.unrealengine.com/t/fintpoint-default-value/303685>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 12, 2015, 1:02am UTC](https://forums.unrealengine.com/t/fintpoint-default-value/303685 "2015-01-12T01:02:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pseudocorpus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pseudocorpus/32/453689_2.png) [@Pseudocorpus](https://forums.unrealengine.com/u/Pseudocorpus)\
**Post date:** [January 12, 2015, 1:02am UTC](https://forums.unrealengine.com/t/fintpoint-default-value/303685/1 "2015-01-12T01:02:50Z")

</div>

Is there a way to set a default value for a FIntPoint-Parameter in a function? Because if I do this in my Header-File, I get a compiler error, that “FIntPoint(0,0) cannot be parsed” :

```
UFUNCTION(BlueprintCallable, Category = Interaction)
		virtual bool PutIntoInventory(ASomCharacter* Char_Instigator, FIntPoint InventorySlot = FIntPoint(0,0));

```

Cheers.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [January 12, 2015, 12:21pm UTC](https://forums.unrealengine.com/t/fintpoint-default-value/303685/2 "2015-01-12T12:21:08Z")

</div>

Hello Braindrain85,

You could not set default because FIntPoint is not recognized. For example, you can setup default for int32, but not for int16. If you would like to know a little more about why the issue occurred, please take a look at the post below.

> **[UFUNCTION optional parameters?](https://forums.unrealengine.com/questions/66583/ufunction-optional-parameters.html)**
>
> Hi guys, I am writing a class, and I would like to use some UFUNCTIONs in it, which will have default argument values (so that you may or may not specify them, while calling functions from Blueprints). How do I do that? So far, I did not find a...

> **[uint32 parameter to UFUNCTION or UPROPERTY is bad\_type?](https://forums.unrealengine.com/showthread.php?1624-uint32-parameter-to-UFUNCTION-or-UPROPERTY-is-bad_type)**
>
> In a custom class, I’m using a uint32 as a parameter for a function and a property, both preceded by UFUNCTION and UPROPERTY respectively. When I go to a blueprint to invoke the function or set/get the property, the pin for that variable is a dull...

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Pseudocorpus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pseudocorpus/32/453689_2.png) [@Pseudocorpus](https://forums.unrealengine.com/u/Pseudocorpus)\
**Post date:** [January 12, 2015, 6:42pm UTC](https://forums.unrealengine.com/t/fintpoint-default-value/303685/3 "2015-01-12T18:42:32Z")

</div>

Hey ,

thanks for the info… but what a pity. Well, I guess I have to initialize the parameter on every function-call then… or take a FVector2D instead.
