# How to set Default Values for Vectors in Custom Event?

**URL:** <https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632>\
**Category:** Blueprint\
**Tags:** default-value, unreal-engine, vector, editor, Blueprint, question\
**Created:** [August 23, 2015, 11:11am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632 "2015-08-23T11:11:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Artax](https://forums.unrealengine.com/u/Artax)\
**Post date:** [August 23, 2015, 11:11am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/1 "2015-08-23T11:11:23Z")

</div>

Hello everybody,

just a short question: If I create a custom event, and I want to give my input parameters some default values, I can do that in the details section. Or at least I can do it for integers, floats and boolean variables, by typing “1”, “1.0” or “true” in the “Default Value” field.

But how can I assign default values for other parameter types? Like vectors or linear colors? I tried a few different ways, but everyting I type in instantly gets deleted… Do I have to use a specific syntax?

How to set a default value?

Thanks for your help!!

---

<div class="post-metadata">

**Author:** ![Devero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Devero](https://forums.unrealengine.com/u/Devero)\
**Post date:** [August 23, 2015, 12:04pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/2 "2015-08-23T12:04:02Z")

</div>

You can set the default value by setting values separated by commas…

For example a vector…

32.0, 32.0, 32.0

Hope that helps =)

---

<div class="post-metadata">

**Author:** ![Artax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Artax](https://forums.unrealengine.com/u/Artax)\
**Post date:** [August 23, 2015, 7:02pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/3 "2015-08-23T19:02:20Z")

</div>

D’oh -.-" Seriously? I tried semikolons and blanks…

Thanks buddy ^^

---

<div class="post-metadata">

**Author:** ![Devero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Devero](https://forums.unrealengine.com/u/Devero)\
**Post date:** [August 23, 2015, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/4 "2015-08-23T21:18:55Z")

</div>

No problem!

If you would accept the answer and/or upvote, I would appreciate the karma =)  
Enjoy your Gamedev!

---

<div class="post-metadata">

**Author:** ![Artax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Artax](https://forums.unrealengine.com/u/Artax)\
**Post date:** [August 23, 2015, 9:22pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/5 "2015-08-23T21:22:59Z")

</div>

Oooh… so _that’s_ how this system works! Thanks a second time for clearing up this mystery! 😃

---

<div class="post-metadata">

**Author:** ![Devero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Devero](https://forums.unrealengine.com/u/Devero)\
**Post date:** [August 23, 2015, 9:26pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/6 "2015-08-23T21:26:53Z")

</div>

No problem, but once you make another comment, it unaccepts the answer, so you need to accept it again… thanks! =)

---

<div class="post-metadata">

**Author:** ![Appia92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Appia92](https://forums.unrealengine.com/u/Appia92)\
**Post date:** [May 6, 2016, 4:56pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/7 "2016-05-06T16:56:05Z")

</div>

could you do it for color? and how ? because this doesn’t work for me.

---

<div class="post-metadata">

**Author:** ![isgoed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@isgoed](https://forums.unrealengine.com/u/isgoed)\
**Post date:** [June 30, 2016, 8:15am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/8 "2016-06-30T08:15:57Z")

</div>

The comma-separated solution works for built in (3D) vectors, but apparently not for the built-in (but defined as a struct) Vector2D. There I had to set the default values as:

(x=1,y=1)

Both the parentheses and the x= and y= are important.

Also it seems, once you set a default value, you can’t clear it any more, you have to enter something. Maybe this has to do with undefined behaviour for already instanced functions. One way to clear the value for a Vector2D is to use ().

---

<div class="post-metadata">

**Author:** ![Willard720](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Willard720](https://forums.unrealengine.com/u/Willard720)\
**Post date:** [September 8, 2016, 7:26am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/9 "2016-09-08T07:26:54Z")

</div>

I was looking around to see how to set default colors, this was the closest I found, but it worked!

For those interested, its:

(r=1,g=1,b=1)

I’m sure you can add a “a=1” at the end if needed. What I was using it for didn’t use alpha

---

<div class="post-metadata">

**Author:** ![CrimsonHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrimsonHawk](https://forums.unrealengine.com/u/CrimsonHawk)\
**Post date:** [September 24, 2016, 7:29pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-for-vectors-in-custom-event/329632/10 "2016-09-24T19:29:20Z")

</div>

And how to do it with arrays? (Like boolean array)
