# Retrieve updated asset tags via C++

**URL:** <https://forums.unrealengine.com/t/retrieve-updated-asset-tags-via-c/1200448>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 15, 2023, 7:20pm UTC](https://forums.unrealengine.com/t/retrieve-updated-asset-tags-via-c/1200448 "2023-06-15T19:20:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![melanieernst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@melanieernst](https://forums.unrealengine.com/u/melanieernst)\
**Post date:** [June 15, 2023, 7:20pm UTC](https://forums.unrealengine.com/t/retrieve-updated-asset-tags-via-c/1200448/1 "2023-06-15T19:20:10Z")

</div>

Hello!  
So I am very new to Unreal Engine and have stumpled across some issues…

I have created a custom asset that has a tag called “MaxCount”. I can edit it via the editor and when I exit the game, the value is still there.  
Now I want to access this value when dragging my asset to the world. I do get a list with assets, but the value of my MaxCount remains the default value, namely 0.

I declared the MaxCount like this:

```auto
UPROPERTY(EditAnywhere, BlueprintReadOnly, AssetRegistrySearchable, Category = Max)
int32 MaxCount;

```

Does someone know what I am doing wrong?

Btw, I am accessing the tags within the actor like this:

```auto
TArray<UObject::FAssetRegistryTag> tags;
	this->GetAssetRegistryTags(tags);

```
