FIntPoint default value

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.

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.

Hope it helps!

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.