# Changing button values

**URL:** <https://forums.unrealengine.com/t/changing-button-values/346440>\
**Category:** UI\
**Tags:** access, button, position, unreal-engine, question\
**Created:** [February 4, 2016, 8:37pm UTC](https://forums.unrealengine.com/t/changing-button-values/346440 "2016-02-04T20:37:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HardnerPL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HardnerPL](https://forums.unrealengine.com/u/HardnerPL)\
**Post date:** [February 4, 2016, 8:37pm UTC](https://forums.unrealengine.com/t/changing-button-values/346440/1 "2016-02-04T20:37:28Z")

</div>

Hey guys I’m pretty new to UE4, and i don’t get something.  
How can I acces button values I mean Position, offset etc. Is it possible?  
If not, can i change button position (after being clicked) without using vertical box?

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [February 4, 2016, 8:48pm UTC](https://forums.unrealengine.com/t/changing-button-values/346440/2 "2016-02-04T20:48:16Z")

</div>

theres not any way that i know of to find a buttons location, I usually always use vertical or horizontal boxes for button layout. If your trying to just show/hide them though, the widget switcher is what you seek.

---

<div class="post-metadata">

**Author:** ![HardnerPL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HardnerPL](https://forums.unrealengine.com/u/HardnerPL)\
**Post date:** [February 4, 2016, 9:02pm UTC](https://forums.unrealengine.com/t/changing-button-values/346440/3 "2016-02-04T21:02:00Z")

</div>

I want something like a card after being clicked do SOMETHING and it moves SMOWHERE. However how do this Vertical box works? Do it let’s you move it in this way or what? 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 4, 2016, 9:05pm UTC](https://forums.unrealengine.com/t/changing-button-values/346440/4 "2016-02-04T21:05:14Z")

</div>

Hello HardnerPL,

One common way to do this would be to drag off of the button reference and use “Slot as Canvas Slot”. From there you would use Get/Set position. I hope that this information helps.

Example:

![48831-slotascanvasslothelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/8/e2854238cc5e4b04702420b937d677e4ba9ae63e.png)

Note: This specific example only works if the button is in a canvas panel

Make it a great day

---

<div class="post-metadata">

**Author:** ![HardnerPL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HardnerPL](https://forums.unrealengine.com/u/HardnerPL)\
**Post date:** [February 4, 2016, 9:47pm UTC](https://forums.unrealengine.com/t/changing-button-values/346440/5 "2016-02-04T21:47:51Z")

</div>

Well it worked, thank you VERY much 😃  
(it made a great day, night in my country ^^)
