# Is there a way to get actual blueprint class from the Asset Registry?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [September 9, 2017, 7:18am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155 "2017-09-09T07:18:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SwiftLeigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SwiftLeigh](https://forums.unrealengine.com/u/SwiftLeigh)\
**Post date:** [September 9, 2017, 7:18am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/1 "2017-09-09T07:18:14Z")

</div>

When listing classes from the asset registry the ‘Get Class’ function returns ‘Blueprint’ or other basic asset types. I would like to get a class which can then be used to cast for a desired custom blueprint subclass. Is this possible in blueprint scripting?

---

<div class="post-metadata">

**Author:** ![Howie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howie](https://forums.unrealengine.com/u/Howie)\
**Post date:** [October 30, 2017, 4:51pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/2 "2017-10-30T16:51:06Z")

</div>

you ever find a solution to this, running into the same problem?

---

<div class="post-metadata">

**Author:** ![anon63705379](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon63705379](https://forums.unrealengine.com/u/anon63705379)\
**Post date:** [October 16, 2018, 9:07am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/3 "2018-10-16T09:07:36Z")

</div>

same here 😉

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [October 16, 2018, 10:30am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/4 "2018-10-16T10:30:37Z")

</div>

I assume you want to cast to blueprint in C++, no you can not do that as it’s technically impossible as class needs to exist in C++ to be valid C++ type. Everything gets compiled down to pure numbers, classes are practically just logical feature that only exists in compilation process and desolves in to machine code, so you can not use the class from blueprint.

You can only get UClass pointer from UBlueprint class via GeneratedClass variable and then use it to spawn actor for example, but you can only cast it to the most highest class that is in C++ and it’s related to blueprint. I think (and thats just a guess) you could make node in blueprint in C++ by doing some hackish stuff in reflection system or (and this one for sure) by making new UK2Node.

---

<div class="post-metadata">

**Author:** ![anon63705379](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon63705379](https://forums.unrealengine.com/u/anon63705379)\
**Post date:** [October 16, 2018, 1:49pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/5 "2018-10-16T13:49:37Z")

</div>

Turns out it is quite easy to get the parent class of a blueprint asset. The asset registry will always return _UBlueprint_ objects, but those objects themselves have a property _ParentClass_, which is the class that you’re probably interested in. This class corresponds with the _Native Parent Class_ that you can see when hovering over an asset in the editor.

![alt text](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/a/52aa490e198eb6868030f6890aa010caf2dc20c4.png)

For my purpose, I wanted to distinguish between inherited classes and the actual class itself too, which you can do using the IsChildOf method once you have the class you desire.  
In the snippet, Asset is of type _FAssetData_, and _ClassType_ is a pointer to a _UClass_.

```
const UBlueprint* BlueprintAsset = Cast<UBlueprint>(Asset.GetAsset());
if (BlueprintAsset)
{
	const bool IsClass = BlueprintAsset->ParentClass == ClassType;
	const bool IsChildClass = BlueprintAsset->ParentClass->IsChildOf(ClassType->StaticClass());
	if (IsClass || AllowInheritance && IsChildClass)
	{
		//...
	}
}

```

---

<div class="post-metadata">

**Author:** ![Ixiguis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ixiguis](https://forums.unrealengine.com/u/Ixiguis)\
**Post date:** [February 26, 2021, 9:01pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/6 "2021-02-26T21:01:44Z")

</div>

Unless I misunderstood the question, the correct answer (based on Wallby’s answer) would be:

```
    UClass* UMyBlueprintFunctionLibrary::GetClassFromBlueprintAsset(const FAssetData& Asset)
    {
    	const UBlueprint* BlueprintAsset = Cast<UBlueprint>(Asset.GetAsset());
    	if (BlueprintAsset)
    	{
    		return BlueprintAsset->GeneratedClass;
    	}
    	return nullptr;
    }
```

---

<div class="post-metadata">

**Author:** ![Kulagin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kulagin](https://forums.unrealengine.com/u/Kulagin)\
**Post date:** [March 26, 2025, 7:48am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/7 "2025-03-26T07:48:43Z")

</div>

> [@SwiftLeigh](#):
>
> Is there a way to get actual blueprint class from the Asset Registry?

Yes. In C++ you just do:

```C++
FString AssetPath = TEXT("/Game/Blueprints/BP_TargetItem");
		UClass* BP_TargetItemClass = ConstructorHelpersInternal::FindOrLoadClass(AssetPath, UObject::StaticClass());

```

> [@SwiftLeigh](#):
>
> I would like to get a class which can then be used to cast for a desired custom blueprint subclass. Is this possible in blueprint scripting?

I don’t think there’s FindOrLoadClass or the functions that use it are exposed to blueprints. But you can do it yourself. Create a BlueprintFunctionLibrary class and add this function to it:

```C++
	UFUNCTION()
	static UClass* GetClassFromBlueprintPackage(FString PackagePath) {
		return ConstructorHelpersInternal::FindOrLoadClass(PackagePath, UObject::StaticClass());;
	}

```

Then in a blueprint:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/9/2992ed133e9e2c5f61c3b58a6ad2a82ec2412a16.png)

> **[Get Class from Blueprint Package posted by anonymous | blueprintUE | PasteBin...](https://blueprintue.com/blueprint/nde1hmkr/)**
>
> No description provided

FindOrLoadClass function works with asset paths in a form of “/Game/Blueprints/BP\_YourBlueprintClass” and “/Game/Blueprints/BP\_YourBlueprintClass.BP\_YourBlueprintClass\_C”.

---

<div class="post-metadata">

**Author:** ![pdenton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdenton/32/911626_2.png) [@pdenton](https://forums.unrealengine.com/u/pdenton)\
**Post date:** [February 9, 2026, 12:57pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-actual-blueprint-class-from-the-asset-registry/404155/8 "2026-02-09T12:57:39Z")

</div>

Hello, I think it’s a new thing in UE (found it in 5.7), but now it’s as simple as that:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/0/0b07e0f396b5fcf3a3f23b835e2e7513f3fb8bd8.png)
