TArray initialisation for default values of function
In my header file of a game controller class, i have multiple structures: FElementData, FElementReference, and FMolecule. In my FMolecule struct, i am aiming to have a list of FElementReferences as one of the properties. So far my code looks like:
Now, I am trying to set a default value for the newElements array, something like:
However, that does not work with TArray. I'm getting a variety of errors depending on what I put and I'm just really confused. I have the FElementReference struct before this one, and the FElement before that, if that helps. Also, my class declaration is after all structs.
asked Dec 01 '16 at 06:55 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here