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?
can you give us pictures of what you re trying to achieve?
To get a class of an object:
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.
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.
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.