# Soft reference and data asset

**URL:** <https://forums.unrealengine.com/t/soft-reference-and-data-asset/2144418>\
**Category:** Getting Started & Setup\
**Tags:** data-asset, unreal-engine, question, Blueprint\
**Created:** [November 22, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/soft-reference-and-data-asset/2144418 "2024-11-22T20:38:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![burex91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@burex91](https://forums.unrealengine.com/u/burex91)\
**Post date:** [November 22, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/soft-reference-and-data-asset/2144418/1 "2024-11-22T20:38:57Z")

</div>

hi everyone, i’m new in unreal engine and try undrestand data asset and soft references.

I have a question about this simply case:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/e/46e74972cb4e1acd911ee233669f3104889da1e4.png)

Inside this data asset are 4 static mesh variables.

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/0/cf0fab61c660369401320566ee8ded5dd854dcde.png)

During the above example, will it load all the static mesh into memory or only one of them ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 23, 2024, 8:38am UTC](https://forums.unrealengine.com/t/soft-reference-and-data-asset/2144418/2 "2024-11-23T08:38:54Z")

</div>

The point of using load on demand assets is, nothing is loaded until you say so.

Here, your cast will preload the blueprint with a DAP\_TEST, because a cast creates a hard reference.

If the meshes in DAP\_TEST are empty until you set them, obviously nothing will be loaded. But if you have default meshes, they will get loaded ( and all the textures ) because of the cast.

You might try cast to a generic engine type, like actor, and talking to it with an interface. Then, nothing is loaded ( until you say ).

---

<div class="post-metadata">

**Author:** ![burex91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@burex91](https://forums.unrealengine.com/u/burex91)\
**Post date:** [November 23, 2024, 8:58am UTC](https://forums.unrealengine.com/t/soft-reference-and-data-asset/2144418/3 "2024-11-23T08:58:15Z")

</div>

I understand, thanks a lot for your help. I had to make sure I was thinking correctly 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 23, 2024, 8:58am UTC](https://forums.unrealengine.com/t/soft-reference-and-data-asset/2144418/4 "2024-12-23T08:58:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
