# Getting Asset Number From FAssetData is incorrect 

**URL:** <https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [June 30, 2026, 1:57pm UTC](https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132 "2026-06-30T13:57:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 30, 2026, 1:57pm UTC](https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132/1 "2026-06-30T13:57:46Z")

</div>

Hello!

Hope whomever reads this is doing well.

I have noticed that when trying to get the Number from FAssetData it adds 1 to the number.

[Image Removed]

My asset is called : test\_1001 but what I get back is 1002. Code included in reproduction steps.

I’ve been able to see this with test\_100 being 101, test\_1 being 2 and test\_001 being 0

This seems like a bug to me, but maybe Number is supposed to be stored this way?

Thank you so much!

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 30, 2026, 1:57pm UTC](https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132/2 "2026-06-30T13:57:50Z")

</div>

**Steps to Reproduce**  
You can add this code to a project and insert your own FSoftObjectPath to reproduce the issue.

```auto
IAssetRegistry& AssetRegistry = FModuleManager::GetModuleChecked<FAssetRegistryModule>("AssetRegistry").Get();
FAssetData TextureAssetData = AssetRegistry.GetAssetByObjectPath(InSoftObjectPath);
FName AssetPath = TextureAssetData.PackageName;

return AssetPath.GetNumber();

```

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 7, 2026, 4:14pm UTC](https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132/3 "2026-07-07T16:14:51Z")

</div>

Hi!

That is not an “Asset Number”. You are fetching the PackageName from the FAssetData, which is an FName. You can read more about what FNames are here: [https://dev.epicgames.com/documentation/unreal\-engine/fname\-in\-unreal\-engine](https://dev.epicgames.com/documentation/unreal%5C-engine/fname%5C-in%5C-unreal%5C-engine)

The Number part in particular is a memory saving technique because many things in Unreal have incremental Number suffixes, so it pays off to give that number suffix special treatment.

FName use is not limited to FAssetData, so you cannot read anything specifically about assets into the Number part - it’s just an instance counter for how often that particularly string was used.

As for why the number shown in the visualization is one off, there’s a hint if you look into NameTypes.h:

```auto
//~ at the top of the file:
 
/** Externally, the instance number to represent no instance number is NAME_NO_NUMBER, 
    but internally, we add 1 to indices, so we use this #define internally for 
	zero'd memory initialization will still make NAME_None as expected */
#define NAME_NO_NUMBER_INTERNAL	0
 
/** Conversion routines between external representations and internal */
#define NAME_INTERNAL_TO_EXTERNAL(x) (x - 1)
#define NAME_EXTERNAL_TO_INTERNAL(x) (x + 1)
 
/** Special value for an FName with no number */
#define NAME_NO_NUMBER NAME_INTERNAL_TO_EXTERNAL(NAME_NO_NUMBER_INTERNAL)
 
//~ further down:
 
	/** Number portion of the string/number pair (stored internally as 1 more than actual, so zero'd memory will be the default, no-instance case) */
	uint32 Number = NAME_NO_NUMBER_INTERNAL;

```

And if you look into Unreal.natvis you can see why the string visualization shows a different value than the Number member if you expand the raw view:

```auto
  <Type Name="FName" Priority="High">
    <DisplayString Condition="this->Number">{DisplayIndex}_{(this->Number - 1),d}</DisplayString>
    <DisplayString>{DisplayIndex}</DisplayString>
    <Expand>
      <ArrayItems>
        <Size>((FNameEntry&amp;)GNameBlocksDebug[DisplayIndex.Value &gt;&gt; FNameDebugVisualizer::OffsetBits][FNameDebugVisualizer::EntryStride * (DisplayIndex.Value &amp; FNameDebugVisualizer::OffsetMask)]).Header.Len</Size>
        <ValuePointer>((FNameEntry&amp;)GNameBlocksDebug[DisplayIndex.Value &gt;&gt; FNameDebugVisualizer::OffsetBits][FNameDebugVisualizer::EntryStride * (DisplayIndex.Value &amp; FNameDebugVisualizer::OffsetMask)]).AnsiName</ValuePointer>
      </ArrayItems>
    </Expand>
  </Type>

```

So that’s the reason behind the one-off 🙂

Ciao, Daniel!

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/1225280_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [July 13, 2026, 1:38pm UTC](https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132/4 "2026-07-13T13:38:28Z")

</div>

Hi,

Daniel is correct. The FName class does use 0 to indicate the Number is not in use for a specific name instance. You can see that engine code is relying on NAME\_INTERNAL\_TO\_EXTERNAL when retrieving the Number. FName::ToString is the best example.

Regards,

Martin

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 23, 2026, 9:44am UTC](https://forums.unrealengine.com/t/getting-asset-number-from-fassetdata-is-incorrect/2743132/5 "2026-07-23T09:44:15Z")

</div>

I see! thank you both for replying

[Attachment Removed]
