# Loading UBlueprint or Baseclass in Constructor

**URL:** <https://forums.unrealengine.com/t/loading-ublueprint-or-baseclass-in-constructor/489310>\
**Category:** Asset Creation\
**Tags:** fobjectfinder, unreal-engine, question\
**Created:** [September 28, 2021, 10:31pm UTC](https://forums.unrealengine.com/t/loading-ublueprint-or-baseclass-in-constructor/489310 "2021-09-28T22:31:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry.Richards](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jerry.Richards](https://forums.unrealengine.com/u/Jerry.Richards)\
**Post date:** [September 28, 2021, 10:31pm UTC](https://forums.unrealengine.com/t/loading-ublueprint-or-baseclass-in-constructor/489310/1 "2021-09-28T22:31:36Z")

</div>

Currently I am loading weapons in the constructor using USkeletalMeshComponent’s. But I would like to change it to UBlueprint or prehaps the baseclass itself using FClassFinder/FObjectFinder. Unfortunately I am unable to get the object to display. Can someone provide a link or code that shows how that is done?

```
static ConstructorHelpers::FObjectFinder<USkeletalMesh> WeaponSkeletalMesh(*WeaponName);
if (WeaponSkeletalMesh.Succeeded())
{
	USkeletalMeshComponent* meshComp = CreateDefaultSubobject<USkeletalMeshComponent>(ARvBCharacter::RightWeaponName);

	meshComp->SetRelativeRotation(RightRotation);
	meshComp->SetRelativeLocation(RightLocation);
	meshComp->SetRelativeScale3D(RightScale);

	meshComp->SetSkeletalMeshWithoutResettingAnimation(WeaponSkeletalMesh.Object);
	//meshComp->SetupAttachment(GetMesh(), ARvBCharacter::RightSocketName);
	meshComp->AttachToComponent(GetMesh(), FAttachmentTransformRules(EAttachmentRule::SnapToTarget, true), ARvBCharacter::RightSocketName);
}

```

 ![349552-duowield2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/1/1013ea53b275ea9f1e36e5ec5d333474c12fc8a4.png)

---

<div class="post-metadata">

**Author:** ![Jerry.Richards](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jerry.Richards](https://forums.unrealengine.com/u/Jerry.Richards)\
**Post date:** [October 3, 2021, 4:07pm UTC](https://forums.unrealengine.com/t/loading-ublueprint-or-baseclass-in-constructor/489310/2 "2021-10-03T16:07:15Z")

</div>

I would have that this would be trivial.
