# Can I edit variables in the character BP from a widget BP?

**URL:** <https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060>\
**Category:** UI\
**Tags:** unreal-engine, Blueprint, question, UMG\
**Created:** [March 21, 2015, 10:51pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060 "2015-03-21T22:51:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterburgler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@masterburgler](https://forums.unrealengine.com/u/masterburgler)\
**Post date:** [March 21, 2015, 10:51pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/1 "2015-03-21T22:51:01Z")

</div>

Hello, Im making a game and have made a shop widget blueprint, and i have a variable in the character BP that i want to be edited when i press one of the buttons. Does this work, and if so, plz tell me! i have really been struggling with this:)

---

<div class="post-metadata">

**Author:** ![AttemptD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AttemptD](https://forums.unrealengine.com/u/AttemptD)\
**Post date:** [March 21, 2015, 11:03pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/2 "2015-03-21T23:03:16Z")

</div>

Sure can. 🙂 get player character, cast to that blueprint, and then you can pull it’s variables and use them how you wish.

---

<div class="post-metadata">

**Author:** ![masterburgler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@masterburgler](https://forums.unrealengine.com/u/masterburgler)\
**Post date:** [March 21, 2015, 11:04pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/3 "2015-03-21T23:04:46Z")

</div>

ok, i’ll try this.

---

<div class="post-metadata">

**Author:** ![masterburgler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@masterburgler](https://forums.unrealengine.com/u/masterburgler)\
**Post date:** [March 21, 2015, 11:07pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/4 "2015-03-21T23:07:28Z")

</div>

wou;ld i use your standard Cast to node?

---

<div class="post-metadata">

**Author:** ![masterburgler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@masterburgler](https://forums.unrealengine.com/u/masterburgler)\
**Post date:** [March 21, 2015, 11:14pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/5 "2015-03-21T23:14:09Z")

</div>

I tried this setup and it did not work:

[](https://dl.dropboxusercontent.com/s/hpcvwts0vemypy4/Screen%20Shot%202015-03-21%20at%204.12.20%20PM.png?dl=0)

---

<div class="post-metadata">

**Author:** ![AttemptD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AttemptD](https://forums.unrealengine.com/u/AttemptD)\
**Post date:** [March 21, 2015, 11:31pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/6 "2015-03-21T23:31:31Z")

</div>

You forgot the get play character node.  
Plug that into the other input in the cast to node.  
U should drag a wire from that node I speak of and cast to from that.

---

<div class="post-metadata">

**Author:** ![masterburgler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@masterburgler](https://forums.unrealengine.com/u/masterburgler)\
**Post date:** [March 21, 2015, 11:43pm UTC](https://forums.unrealengine.com/t/can-i-edit-variables-in-the-character-bp-from-a-widget-bp/312060/7 "2015-03-21T23:43:16Z")

</div>

ok, thanks! this worked, and I’m quit glad;)
