Store Components In C++ Accessible Array
Sorry, the title isn't totally what I want, but I'll explain what I am trying to do. I am trying to store an array of structs containing a USceneComponent derived class reference and a float. I want to access that array in C++, but define it in blueprint. The USceneComponents are already attached to my blueprinted object, and I want to store references to them in the array along with their float data, but ideally I want to do this in Properties as default values.
I'd like to avoid setting each index in my construction script because it's a little harder to understand for others, and having it
My basic struct looks like:
My array definition looks like:
My scene component fields never show up in my array properties.
The alternative is to make a subclass of my USceneComponent derived class that also stores the float, which isn't the end of the world, but will require me to remake my existing components with the new derived types I think.
asked Apr 17 '15 at 07:49 PM in C++ Programming
Giving the specifier BlueprintType as a parameter of the Ustruct macro will expose these properties in the editor.
answered Feb 26 '18 at 10:31 PM
Daniel U ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here