Where and How is the new FStrcut deleted?

Hi Sami,
thanks for replying :smile:
I am trying to get used to UClass and use NewObject, since with them I know I don’t need to worry about deleting them manually.
I am learning the Gameplay Ability System and I found some “official” codes uses “new” for new struct variables, and in the image it is an example.
We “shoud not” “new” an class instance, and similarly we also shouldn’t “new” a struct. This is what I am intuitively aware of. So when I see the GAS use it I am very confused. (It doesn’t use “new” a lot for structs, but I do see them in Gameplay Effect Context and Gameplay Target Data. So I am quite confused. :persevere:

1 Like