Struct type in blueprint

Is it possible to create a variable of Struct type? Just as you do with classes.

Yep. Right click in the content browser and choose ‘structure’ from the blueprint menu…

Thank you for your response! What I’ve meant is to create an struct type inside of a Blueprint? That is, to have an argument that accepts a struct class, just like a UObject class. Is that possible?

Not sure I know quite what you mean, but once you’ve setup your struct type, you can use it as a variable type in BP, just like any other type…

283503-variable-declaration.jpg

Thank you for your attention. But how can I promote it to a typeof() variable in BPs? I can do so with classes, but not with structs, it seems.

Are you talking about C++ or BP? What do you mean by ‘typeof()’?

Do you mean like this:

https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/1466876-check-if-interface-variable-is-typeof-x

?

There is a possibility to create a BP variable of type UClass*. A variable of type of type of the class =) But seems like there is no such analogue for structs, unfortunately.