Issue: Load a soft object and directly place the loaded object into a blackboard. After around 2 minutes the object will unload and become null inside the blackboard. This issue only occurs in a packaged game or when running the game in standalone
Detailed steps to replicate (see bottom for link to project):
- Create a BP actor: MyRandomActor
- Create a Blackboard: MyBB
- Add an object variable inside the Blackboard: MyObject
- Create an AIController: MyAIC
- Add a soft object to the AIController and set the default value to MyRandomActor
- On begin_play of MyAIC, load the soft object. Use the blackboard “MyBB” and set the MyObject value inside the blackboard to the loaded soft object
- On tick of MyAIC, print if the MyObject value on the Blackboard is valid
- Create a pawn to use MyAIC and place the pawn in the map
- Run the game in standalone and wait for 5 minutes (usually took me around 2 minutes before it unloads), the soft object which was loaded should have become unloaded and is now nullptr inside the blackboard
Other things I have tested:
- The object does not unload if you store the loaded object as a variable inside MyAIC
- This also occurs with TSoftClassPtr
Link to a project replicating these steps: SoftObjectBug.zip - Google Drive