# \[BUG\] GetDynamicMaterial node broken

**URL:** <https://forums.unrealengine.com/t/bug-getdynamicmaterial-node-broken/324212>\
**Category:** UI\
**Tags:** unreal-engine, bug-report, Widget, question\
**Created:** [July 6, 2015, 3:35am UTC](https://forums.unrealengine.com/t/bug-getdynamicmaterial-node-broken/324212 "2015-07-06T03:35:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [July 6, 2015, 3:35am UTC](https://forums.unrealengine.com/t/bug-getdynamicmaterial-node-broken/324212/1 "2015-07-06T03:35:01Z")

</div>

The **GetDynamicMaterial** node (found in widget blueprint library) is expecting an in/out parameter by reference of a brush, but is missing the **UPARAM(ref)** attribute to make it valid.

> **[Get Dynamic Material](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Widget/Brush/GetDynamicMaterial/)**
>
> Get Dynamic Material

The documentation also shows it broken.

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [July 7, 2015, 2:20pm UTC](https://forums.unrealengine.com/t/bug-getdynamicmaterial-node-broken/324212/2 "2015-07-07T14:20:17Z")

</div>

Hi Grogger -

Yep that’s not right. I have placed a bug report in as UE-18241. In the meantime, if you call a reference to a specific brush you can then call the Get Dynamic Material node and if will be the accessible one.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [July 7, 2015, 2:33pm UTC](https://forums.unrealengine.com/t/bug-getdynamicmaterial-node-broken/324212/3 "2015-07-07T14:33:48Z")

</div>

Thanks Eric  
That works nicely 🙂
