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
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:
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.
answered Dec 16 '15 at 08:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here