# Asset Registry can't find files

**URL:** <https://forums.unrealengine.com/t/asset-registry-cant-find-files/421631>\
**Category:** Platform & Builds\
**Tags:** asset-pointer, unreal-engine, question\
**Created:** [April 2, 2018, 7:02pm UTC](https://forums.unrealengine.com/t/asset-registry-cant-find-files/421631 "2018-04-02T19:02:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin.Dooley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justin.dooley/32/1194553_2.png) [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Post date:** [April 2, 2018, 7:02pm UTC](https://forums.unrealengine.com/t/asset-registry-cant-find-files/421631/1 "2018-04-02T19:02:39Z")

</div>

I’m trying to find assets of a type and decided the asset registry would be a better way than to have a massive array of “loaded assets” The trick is that I’m not actually getting any results back from the Asset Registry. I tried looking for something basic and got the

```
   //Load the module
    FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry");
    //Setup output array
    TArray<FAssetData> AssetData;
    //Get the asset Registry and find assets of type RWallTile, store in AssetData, include subclasses
    AssetRegistryModule.Get().GetAssetsByClass(ARWallTile::StaticClass()->GetFName(), AssetData,true);
    //Output the result for testing
    UE_LOG(LogTemp, Warning, TEXT("Found %d Assets of type %s"),AssetData.Num(), *ARWallTile::StaticClass()->GetFName().ToString());

```

This results in the following being output

```
LogTemp: Warning: Found 0 Assets of type RWallTile
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e96160d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e96160d7](https://forums.unrealengine.com/u/anonymous_user_e96160d7)\
**Post date:** [January 13, 2019, 8:06pm UTC](https://forums.unrealengine.com/t/asset-registry-cant-find-files/421631/2 "2019-01-13T20:06:23Z")

</div>

Are you sure the call to `ARWallTile::StaticClass()->GetFName()` is giving you what you want? I use Asset Registry heavily in my game and I usually just hard-code the names of the classes I want to find. I’ve noticed that Asset Registry wants the class name to be the name of the class **without** the “A”, “U”, “S”, “F”, etc prefix.

So since you’re looking for all assets of type `ARWallTile`, pass in the string `"RWallTile"` into the asset registry call. That’s how I do it in my game and it works fine.

Though, I do have issues with asset registry and standalone builds of my game. You may want to make sure the assets you want to load are actually being cooked and packaged when you ship your build, otherwise you end up with

---

<div class="post-metadata">

**Author:** ![Justin.Dooley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/justin.dooley/32/1194553_2.png) [@Justin.Dooley](https://forums.unrealengine.com/u/Justin.Dooley)\
**Post date:** [January 15, 2019, 2:33pm UTC](https://forums.unrealengine.com/t/asset-registry-cant-find-files/421631/3 "2019-01-15T14:33:25Z")

</div>

Thanks for the reply. I’ve actually abandoned this approach a few months ago. Instead we went with a slightly more restrictive approach of having a specific naming convention. Then we parse the name and can identify an asset that way.
