Array filled in OnConstruction is empty on next call
I am attempting to create a usable list of scenecomponents for a user to select one in an array.
I have created a struct, FComponentListItem:
And I have created another struct with a TArray of these structs on an ActorComponent called InteractionComp.
In my actors OnConstruction function, I call a function on InteractionComp that finds all usable scenecomponents on the actor and then creates an FComponentListItem struct and copies in the appropriate information. This should then be usable by the user. Unfortunately, I can't find a way to populate this array in a meaningful way.
Every time this code runs, (ComponentListMaster < 1) returns true, even if the list was populated with 5 members in the previous run.
asked Jul 28 '16 at 08:38 PM in C++ Programming
A few items of feedback:
answered Jul 29 '16 at 01:52 AM
Digi Labs Dan
Follow this question
Once you sign in you will be able to subscribe for any updates here