Automate Filling of Default Values in an Empty Array Inside a Struct?

Good day community! I’m new to the engine and hoping to find a method, if there exist, on how to solve my problem. I have a struct that contains array of sprites. Each array will contain 100 sprites of name “S_example_0” up to “S_example_099”. Is there a way to fill the empty array of sprites automatically? It would be so repetitive and annoying if it has to be done manually.

Many thanks!

I don’t think there a way other then C++, which you could loop element adding in constructor and CDO would inherent that.

But you always have option to set defaults on actor start up, with array is actually easier as you can always check size of set array. Could fill array with default content in run time (Construction script or BeginPlay) not sure what you trying to dp but for example, let say you add 16 elements to empty array if defaults, on begin play you would check the size of array and fill rest of array with generated default content.

Also you need to do this just once, doing 100 should not be that much of a big hussle in base class or other classes will inherent and in future you can copy paste properties (yes you can right click property and copy paste there settings)

Thanks for the idea but the problem is that in my project, I have to fill the default values of an array inside a struct of name “example_0 to example_n”. Like I’m looking for an automated way to do it instead of doing a manual fill of default values…

“a struct”
—“an array” → set dafault value of arrays
—example_0.sprite
—example_1.sprite
—…
—…
—…
—example_n.sprite

You also mentioned it can be done in c++? Would that mean there is an automated way for C++ to fill the default values in an array within a struct?

Many thanks!