So, I’ve an object I want to use as a data storage with ~10 variables and no functions, thus I made it struct.
I created an array and filled it with my custom structs and now I want to assign new value to some variables through custom function, blueprint available.
My function:
But my reference became OUTPUT in my Blueprint Editor. If I use “const FHexagonData&” instead of “FHexagonData&” everything is okay, it stays input, but of course in this particular case I can’t use “const”, I want to pass some data and modify it.
I can’t use pointers with structs, which make me sad panda
As far as I understand if I use this:
I just get a copy of struct and my copy get new type and after this I should assign this copy to corresponding member of array, but I don’t want to iterate through array twice each time I modify a little bit of something =_=
So, am I doing something wrong, should I change structs to classes?
//Sorry for a messy text
1st sorry for necro
2nd this stuff should be in docs, just found macro header file and there is so much there that is makes nice reading list! XD nice tip! thank you.