I’ve been looking into them today and I’ve come across multiple listings for how to use them and yet I can’t get them to work. I get that they’re not like a normal struct. Can I declare USTRUCT within another classes header? If not then how do I create one? I’m new to programming and I mostly rely on the class wizard to get the initial references in. I can’t seem to find them inside them class wizard. I’ve tried declaring one above a UCLASS() like so:
#pragma once
USTRUCT()
struct SomeStruct
{
GENERATED_USTRUCT_BODY()
UPROPERTY()
etc...
}
This gives me problems doing it this way.