# Asset loading (Available or Not Available)?

**URL:** <https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566>\
**Category:** Getting Started & Setup\
**Tags:** loading, async, unreal-engine, issue, question\
**Created:** [December 14, 2014, 2:02pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566 "2014-12-14T14:02:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [December 14, 2014, 2:02pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/1 "2014-12-14T14:02:05Z")

</div>

So i have this issue where assets is not available in-game e.g: Data table or Weapon Mesh or something else.  
Everything works fine except when first starting the Editor i may need to double click on e.g: Data Table asset or BP.

And first then will the asset be loaded in-game “available”, now i partly know how to fix this issue by Loading the object/ asset dynamicly using _LoadObjFromPath(.)_ but reading over some threads and docs i think i may need to do some Asynchronous Asset Loading?

Is it possible someone have the time to explain this concept to me a bit?  
The docs on the subject is very confusing and am strugeling to figuer out if its the correct way to go.

Thanks for any help on the subject.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [December 16, 2014, 4:45pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/2 "2014-12-16T16:45:18Z")

</div>

Threads go bump in the night.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [December 18, 2014, 7:27am UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/3 "2014-12-18T07:27:56Z")

</div>

I Whould aprichiate if someone could confirm this, or had the time to explain it a bit.

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 19, 2014, 5:25pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/4 "2014-12-19T17:25:30Z")

</div>

Hey -

I’m having a bit of trouble understanding your questions. When you say that the asset is not available in-game do you mean that it is not showing up when you run play in editor? Also, Are you double clicking the asset in the content browser or the actual asset placed in the level? Let me know if you have any other information to include.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [December 22, 2014, 3:13am UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/5 "2014-12-22T03:13:58Z")

</div>

Hello sorry for not beeing clear enofe.

**This is the secnario:** _(Presisten on all available versions 4.x.)_

I open up my project normaly.

I Press Play in Editor and the game launches.

In my UI i have a liist of items the player can craft that is retrived from a Data Table (FString`s).

At this point no strings are added to the list (its like they dont excist.).

Stoping the PiE seassion and navegating to the Data Table asset in the Content Browser.

I double click on the Data Table asset in the Content Browser (i just close the “Table Editor”).

I Start a new PiE session and now the strings are added.

_I can run the game as many times as i want and Tabels will only be available once i have double clicked on the Data Table asset in the content browser.  
I had the same type of issue some months back with a weapon mesh.  
I could solve the problem by ether placing one weapon in the level, double click on the Weapon Blueprint (like above.), Or use ::StaticLoadObject(…) before spawning the asset._

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 30, 2014, 3:49pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/6 "2014-12-30T15:49:40Z")

</div>

It sounds as though a reference to the asset isn’t getting set properly until the asset is accessed directly. Do you see the same behavior if you try doing a Standalone game rather than PIE? Also, if you recreate the Data Table (create a new one and copy the info) does the same thing occur?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [December 30, 2014, 9:49pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/7 "2014-12-30T21:49:20Z")

</div>

Hello that was a good qustion and running standalone i get no data what so ever. And re-creating and/or re-importing and the same issue ocures.

I followed the documentation on  
[Data Driven Gameplay Elements in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Gameplay/DataDriven/index.html) .

My data is stored in a singelton class like shown using the same method of access.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

And member type look like this.

```
// Array of General Crafting Recipts Data Tabels index == crafting skill level -1
    	UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Data Singleton, Data Tabels")
    		TArray<TAssetPtr<UDataTable>> GeneralCraftingRecipts;

```

Am thinking that am not loading the asset correctly (using TAssetPtr wrongly).  
The resson for this is that in a difrent member for items,i have a hard pointer and i get all data of that one except one thats is for a TAssetPtr to a Slate Brush.

```
// Holds list of general item information for all iems in the game.
	UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Data Singleton, Data Tabels")
		UDataTable* MyMasterItemList;

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [January 3, 2015, 10:00am UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/8 "2015-01-03T10:00:51Z")

</div>

Ok so i more or less solved this issue by in essence using

> **[StaticLoadObject](https://docs.unrealengine.com/5.1/en-US/API/Runtime/CoreUObject/UObject/StaticLoadObject/)**
>
> Find or load an object by string name with optional outer and filename specifications.

UObject::StaticLoadObject(,) With the String Refrence of the TAssetPtr.

> **[UObjectBase::IsValidLowLevel](https://docs.unrealengine.com/5.1/en-US/API/Runtime/CoreUObject/UObject/UObjectBase/IsValidLowLevel/)**
>
> Checks to see if the object appears to be valid

If the TAssetPtrObject-\>IsValidLowLevel() == false;

Like [the doc](https://docs.unrealengine.com/latest/INT/Programming/Assets/AsyncLoading/index.html) say 😉 i know i was doing something wrong.

Am just wondering am not using the FStreamableManager at this point.

What is the down sides to this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [January 6, 2015, 3:33pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/9 "2015-01-06T15:33:07Z")

</div>

Hey -

I’m glad to hear that you were able to resolve your problem. Your question about using FStreamableManager would be best suited for the forums where you can get community feedback.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [January 6, 2015, 5:55pm UTC](https://forums.unrealengine.com/t/asset-loading-available-or-not-available/301566/10 "2015-01-06T17:55:38Z")

</div>

Am ahead of you on that one 🙂

> **[Some guidence on Asynchronous Asset Loading](https://forums.unrealengine.com/showthread.php?55574-Some-guidence-on-Asynchronous-Asset-Loading)**
>
> Hello everyone am trying to setup AAL / solve a issue am having. The issue is that unrefrenced content is not beeing loaded at runtime. From what i have been able to gather so far is that it all comes down to Asynchronous Asset Loading. Now i have...
