Guys, in a plugin i’m creating i need to be able to UNDO/REDO changes to an array.
It seems that TArray doesn’t have this capabilities but instead TTransArray can do that.
Am i right or am i doing something wrong?
Besides TTransArray isn’t a UCLASS, so it can’t be used as a UPROPERTY, nor serialized in a normal way.
How would i resolve this issue? i can imagine some cases.
- Use TTransArray, but without UPROPERTY, use a custom serialization with it.
- Inherit from TTransArray and make that class be UPROPERTY, not sure it will work.
- Use TArray in some way that i don’t understand, using maybe PostUndo.
Thoughts?
Thanks a lot, i have asked everywhere but to no avail.