Hi I am working with Unreal c++. Is there something similar to UCLASS() for structs that…
- User
Hi I am working with Unreal c++. Is there something similar to UCLASS() for structs that I could use to display in the editor?
- Assistant
Yes, in Unreal Engine with C++, for structs that you want to display and interact with in the Unreal Editor, you use the
USTRUCT()macro. TheUSTRUCT()macro, much like theUCLASS()macro for classes, allows your C++ structs to be recognized by Unreal's reflection system, enabling them to appear in the editor, be serialized, and work with Blueprint among other features.