# How to get a float value of a FAssetData?

**URL:** <https://forums.unrealengine.com/t/how-to-get-a-float-value-of-a-fassetdata/343078>\
**Category:** Blueprint\
**Tags:** asynchronous-asset-l, unreal-engine, stream, question\
**Created:** [January 4, 2016, 5:39pm UTC](https://forums.unrealengine.com/t/how-to-get-a-float-value-of-a-fassetdata/343078 "2016-01-04T17:39:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pseudocorpus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pseudocorpus/32/453689_2.png) [@Pseudocorpus](https://forums.unrealengine.com/u/Pseudocorpus)\
**Post date:** [January 4, 2016, 5:39pm UTC](https://forums.unrealengine.com/t/how-to-get-a-float-value-of-a-fassetdata/343078/1 "2016-01-04T17:39:27Z")

</div>

I was about to create an object library of certain objects like this:

```
//Create object library 
		TArray<FAssetData> AssetDatas;
		UObjectLibrary* ObjLib = UObjectLibrary::CreateLibrary(ASomPickup::StaticClass(), true, GIsEditor);

		//Load data of the pickup class into the object library
		ObjLib->AddToRoot();
		ObjLib->LoadBlueprintAssetDataFromPath(TEXT("/Game/Pickups/" + PickupSubPath));

		ObjLib->GetAssetDataList(AssetDatas);

print(FString::FromInt(AssetDatas.Num()));

```

So far so good. It all works well and objects are being found. Now I want to read a certain float-value of the classes:

```
for (int32 iList = 0; iList < AssetDatas.Num(); iList++)
		{
			FAssetData& AssetData = AssetDatas[iList];

			const FString* FoundTypeNameString = AssetData.TagsAndValues.Find(GET_MEMBER_NAME_CHECKED(ASomPickup, SpawnProbability));

			if (FoundTypeNameString)
			{
				print("FOUND");
			}
		}

```

But “FOUND” is never being printed, even though the corresponding float is marked as “AssetRegistrySearchable”:

```
//The probability with which the item will be spawned
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Defaults, AssetRegistrySearchable, meta = (ClampMin = 0.0, ClampMax = 1.0, DefaultValue = 1.0))
		float SpawnProbability;

```

Does anyone have a clue what the problem might be or what I could do to get the float-value of an unloaded class?

---

<div class="post-metadata">

**Author:** ![Pseudocorpus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pseudocorpus/32/453689_2.png) [@Pseudocorpus](https://forums.unrealengine.com/u/Pseudocorpus)\
**Post date:** [January 7, 2016, 10:00am UTC](https://forums.unrealengine.com/t/how-to-get-a-float-value-of-a-fassetdata/343078/2 "2016-01-07T10:00:55Z")

</div>

(Re-)saving all the assets inside the editor fixed the problem.
