Save Game object that contains a FSoftObjectPtr
It is currently not possible to create a save game object that contains a FSoftObjectPtr. In my case the object ptr indicates a checkpoint actor to respawn at.
Save games are serialized via
Is this intended behaviour?
Kind Regards, Jacomi
asked Oct 09 '18 at 07:58 AM in C++ Programming
Hi there, FSoftObjectPtr.: Pointer to UObject asset, keeps extra information so that it is works even if the asset is not in memory FSoftObjectPtr is a type of weak pointer to a UObject , that also keeps track of the path to the object on disk. It will change back and forth between being Valid and Pending as the referenced object loads or unloads. It has no impact on if the object is garbage collected or not. FObjectAndNameAsStringProxyArchive: Implements a proxy archive that serializes UObjects and FNames as string data. Serializing the address won't work. You can't just write down the exact memory address, because there's no way to guarantee that objects on the next run will be able or not. Serializing the pointed object in each place where we have a pointer wont work: This would be a lot more data that we'd need to serialize If we had weak pointers creating a circular dependency we wouldn't be able to stop and retrieve that connection later. There is no way to merge the same objects into one when deserializing. So i suppose that it would be an intended behaviour.
answered Oct 09 '18 at 10:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here