Inside Unreal: Demystifying Soft Object References - May 14

WHAT
This week Christian Allen will provide an overview of Hard & Soft Object references in Blueprints, why the differences are important to know about, and how you can utilize Soft Object references in your project to help with memory management.

WHEN
Thursday, May 14 @ 2:00PM ET - Countdown

WHERE
Twitch

WHO
Christian Allen - Evangelist - @anonymous_user_a71b9c06](https://twitter.com/Serellan)
Victor Brodin - Community Manager - @victor1erp](http://twitter.com/victor1erp)

RESOURCES

ARCHIVE
Demystifying Soft Object References | Inside Unreal - YouTube

Yay! I recently started using Soft Object References, but there is so little practical information around about them, that I wasn’t sure if I’m using them correctly ^^’
This will definitely clarify thing up for me! Thanks

gg you are the best

Thanks for that - interesting and helpful

Oh heck yeah!!! Can’t wait.

Good, because i have a few questions. Should i use a soft reference to handle the status (taken / not taken) of an object/actor that is from a streaming level and is also destroyed if not taken when the level is unloaded, but the level can be loaded again so if must know if the item should spawn or not. Or scenario that should be destroyed, enemies killed, etc… or soft references are not the way to handle that?

The only practical reason I can think of is for not loading objects that are absolutely NOT needed in the level at the time.

Let’s say you have a optional room with objects that the player does not have to go into, you can use soft object ref so you don’t have to load it with the rest of the level. That way, the loading level is small.

Or a clothing system with hundreds of outfits. Loading all of them at runtime will take longer to load than GTAV. With soft object ref. you load what you need.

Very helpful! Thanks!

Nice little demonstration

i am so excited

OMG yes this!

Can you PLEASE cover SoftObj refs in relation to loading assets from disk and best practices for this? Several of the methods don’t seem to work in StandAlone.

And also, what’s up with serialization for SoftObjRefs? Trying to create a save game that contains one crashes to desktop last I tried (I think it was in 4.20)

edit: whoops, never mind. I just watched the video and it looks like my first question is exactly what you’re already gonna talk about :slight_smile:

Yes. This is a vital skill, and the only way to remove pesky frame hitches caused by using hard object references. I’ve only be able to get them to work in C++. Soft references with primary assets ID in BP makes no sense. I hope they cover the steps necessary to make it work in C++, because it was a ***** to figure out how to set up Singletons. (Every step needed to be detailed in the docs.)

Please, may you upload this video on Youtube? I don’t know why, but every time I try to watch videos on Vimeo, they get stuck. Thanks!

I have same issue with Vimeo. Bad net route, no clue

Thnk you very much for the explanation. At the end you have two skeletal meshes loaded, is there any way to unload an object reference when not used?

Another relevant video on the same subject: