# How can I get a property as a variable?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-a-property-as-a-variable/447537>\
**Category:** Editor Scripting\
**Tags:** Variable, properties, property-customizati, progress-bar, unreal-engine, question, Blueprint\
**Created:** [April 21, 2019, 1:12am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-property-as-a-variable/447537 "2019-04-21T01:12:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PreProPrax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PreProPrax](https://forums.unrealengine.com/u/PreProPrax)\
**Post date:** [April 21, 2019, 1:12am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-property-as-a-variable/447537/1 "2019-04-21T01:12:19Z")

</div>

I am trying to make my progress bar size changeable. If I do something like using a skill, It should increase the size of the progress bar. Can I make something like that?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 21, 2019, 10:59am UTC](https://forums.unrealengine.com/t/how-can-i-get-a-property-as-a-variable/447537/2 "2019-04-21T10:59:31Z")

</div>

It all depends on what is containing the widget as it one defining the layout. With canvas widget which is default main root widget when you create Widget Blueprint widget can be freely sized and data contained in slot object inside the widget. So from widget object get “Slot as Canvas Slot” node and from there you can use “Set Size” node.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [April 21, 2019, 5:52pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-property-as-a-variable/447537/3 "2019-04-21T17:52:55Z")

</div>

You mean like this? I think I already solved this problem for you.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/8/a18e8d3dad084d26e3734abd874265315f59c30a.jpeg "Unreal Engine 4 Tutorial: Dynamically Sized Progress Bars #dynamic #progress #size") ](https://www.youtube.com/watch?v=m_zSkNcWKKQ)

If you would rather create all the nodes yourself you can follow this tutorial.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/b/07b5b89022a0893547380b0d9a3207dd607cf09a.jpeg "Unreal Engine 4 Tutorial: Dynamic Progress Bars #progress #bar") ](https://www.youtube.com/watch?v=yTujy61Eaw8)
