5.5: The Size Map and Soft References also do not work for me. It always seems to show the size with all data of soft references included.
Would be nice to get an official statement on this…
5.5: The Size Map and Soft References also do not work for me. It always seems to show the size with all data of soft references included.
Would be nice to get an official statement on this…
Can you show the variable details of the soft ref?
Thank you. I think the loading was caused by a cast and this tutorial helped a lot to fix it.
This has always been the case.
If a soft reference to another BP is created in the BP, then it will not be a soft reference and will always be loaded.
True soft references are marked in pink in the “Reference Viewer”.
To work around this situation, you can create a soft reference to a more basic class created in C++, such as Actor or Pawn.
Or, for example, you created a class “BP_test” and a child class “BP_test_child”. If you create a soft reference to the class “BP_test” but specify the value of the variable “BP_test_child”, then ‘BP_test’ will be a hard reference, but “BP_test_child” will be a soft reference.
So, a soft reference to a class loads it into memory, but not its child classes.
But if you call the “Cast To class name” node, the class will still be loaded into memory, even if this node is not used and not connected by wires.
Therefore, soft references work well for resources, because for “Static Mesh” you create a soft reference to “Static Mesh” but specify a specific “Static Mesh”.
Soft references in C++ also work as they should (because C++ code references other C++ classes).
To check which objects are loaded into memory, you can use the Obj List console command and run “Standalone game” (the editor rarely clears resources in memory).
Example of the Obj List command:
Obj List name=t1 - show all objects named t1
Obj List class=skeletalmesh - show all skeletal meshes
Obj List class=texture - show all textures
The result of console commands is recorded in the log \Saved\Logs\Project_Name_2.log (version “2” is created for Standalone game).
If the console is at the top (double press ~), then the output will be in the console.