分为两类
1.被UPROPERTY标记的USTRUCT或者被UPROPERTY标记的TArray可以被垃圾回收的
2.函数内自己动态new的USTRUCT需要你自己管理释放,UE4不会帮你释放。或者使用智能指针。
参考资料:
1.https://www.ue4community.wiki/Legacy/Structs,_USTRUCTS(),_They%27re_Awesome#Garbage_Collection
2.https://gameinstitute.qq.com/community/detail/101085
3.https://docs.unrealengine.com/zh-CN/Programming/UnrealArchitecture/Reference/Structs/index.html