Passing USTRUCT() reference to Blueprint

How can I pass USTRUCT() reference from a C++ class to it’s child blueprint?
I have my USTRUCT() defined in a separate header.

In my AActor c++ class header I make a forward declaration on structure

	struct FSymbolInfo* SymbolProperties;

and in source file I actually include structure header and fill it’s fields with data.

How can I access USTRUCT() data with a BP?

USTRUCT() is defined separately:

USTRUCT(BlueprintType)
struct TWODSIDESCROLLER_API FSymbolInfo
{
	GENERATED_BODY()

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SymbolProperties")
		FString SymbolName;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SymbolProperties")
		float SymbolLength;

		FSymbolInfo()
	{

	}
};

Hello Unteroid,

What exactly do you want to do with the reference when you get it to blueprint? You should be able to just create an variable of the struct’s type and make that variable a UProperty. It’ll then show up as one of the blueprint’s properties and will reflect any data you’ve put into it.

You will run into issues if you try to create a UProperty of a UStruct with forward declaration along however. You’ll need to include the file where this UStruct is being declared. This is due to how structs are parsed.

Making structure available with UPROPERTY() worked, weird I didn’t try that.
I didn’t want to declare struct in header because I don’t really like to pollute it.

I did want to make pointer to struct as UPROPERTY() and allocate memory later in the constructor as we do with components.