# How to access a class of a blueprint widget in blueprints?

**URL:** <https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question\
**Created:** [February 8, 2021, 12:26am UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418 "2021-02-08T00:26:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 8, 2021, 12:26am UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/1 "2021-02-08T00:26:05Z")

</div>

Trying to carry widget info around and every time I need to make a widget (or recreate it from an array or drag and drop) I need the class info - not the object itself. What nodes do I need to use?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_308f0a98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_308f0a98](https://forums.unrealengine.com/u/anonymous_user_308f0a98)\
**Post date:** [February 8, 2021, 5:32am UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/2 "2021-02-08T05:32:35Z")

</div>

can you give us pictures of what you re trying to achieve?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 8, 2021, 7:30am UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/3 "2021-02-08T07:30:38Z")

</div>

To get a class of an object:

![329160-screenshot-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/1/3210cdfeecf3e5e3892bc62c950f923d4662d610.jpeg)

If it’s for dragging, you can then include it in the drag operation and the data will be available on drop when you get the operation.

* * *

If you need the class of an object before its instantiated, you can include it in a struct.

---

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 8, 2021, 7:17pm UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/4 "2021-02-08T19:17:03Z")

</div>

Yea, the get class was the first thing I tried and it didn’t work - which was why I was confused. But I’ve moved on.

---

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 8, 2021, 7:17pm UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/5 "2021-02-08T19:17:30Z")

</div>

![329232-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/1/a218d1e5fcd0e24d7185ae828afa0b1ef967feb5.png)

---

<div class="post-metadata">

**Author:** ![1l2Hawk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/1l2hawk/32/927115_2.png) [@1l2Hawk](https://forums.unrealengine.com/u/1l2Hawk)\
**Post date:** [February 8, 2021, 7:32pm UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/6 "2021-02-08T19:32:35Z")

</div>

Not sure if you’re trying to get the class from a Widget Component or not, but one thing that trips folks up is that you aren’t actually adding a widget directly in a character … you’re adding a container and that has the widget inside it. So unlike the way most other things tend to work, if you try to GetClass on the container it will not give you the class of the widget itself. To do that, you have to pull off and use a Get Widget on the component first and then Get Class on THAT instead. Kinda weird but may help you.

 ![329208-widget.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/2/1824af54168a19bf9a431fa1bd2ab7df6806bd35.jpeg)

---

<div class="post-metadata">

**Author:** ![HyperCazual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperCazual](https://forums.unrealengine.com/u/HyperCazual)\
**Post date:** [February 8, 2021, 9:42pm UTC](https://forums.unrealengine.com/t/how-to-access-a-class-of-a-blueprint-widget-in-blueprints/478418/7 "2021-02-08T21:42:50Z")

</div>

![329251-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/1/0317b2984906fcb150698ab10612e5f7addeab71.png)

That seems to be one step closer but…
