For some reason I want to create a Custom Structure that uses a TMap and use it as the value of the TMap.
But I am concerned because having a structure within a structure has caused problems in the past and ruined the entire project.
That happened i do some complicated changes in previous versions, but this time i going to use a simple structure with only TMap.
So I think it’s probably safe, but I’d like to know in advance what risks and problems may be involved.
Famous last words, eh?
There are still risks involved and there are target fixes for UE v5.5 - worst case scenario, a total irreversible corruption. The riskiest part, afaik, is modifying the struct’s signature while it’s exposed as a variable, especially if it has enumerator that you also update…
There are some workarounds, too. The most common and oldest one:
- save all
- modify struct signature
- save struct
- quit project
- do not save anything else when prompted
Note that it’s an issue with BP declared structs only.
hmm…still risks involved…
I encountered this problem two years ago.
I didn’t realize this problem was that serious. I’m glad I asked the question.
And I swear never ever modifying the signature.
Thank you for the information.
as a possible solution have a struct of 2 arrays instead of a map, or 3 or 4.
works just like a map as long as you ensure the indexs are the same. I needed to do this since Maps arent replicated either.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.