# ConstructorHelpers and chunks

**URL:** <https://forums.unrealengine.com/t/constructorhelpers-and-chunks/490069>\
**Category:** C++\
**Tags:** Chunking, unreal-engine, Packaging, CPP, question\
**Created:** [October 20, 2021, 10:12pm UTC](https://forums.unrealengine.com/t/constructorhelpers-and-chunks/490069 "2021-10-20T22:12:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheS3raph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheS3raph](https://forums.unrealengine.com/u/TheS3raph)\
**Post date:** [October 20, 2021, 10:12pm UTC](https://forums.unrealengine.com/t/constructorhelpers-and-chunks/490069/1 "2021-10-20T22:12:48Z")

</div>

Hello,

I have been working on setting up Chunk Downloader and ran into an issue with my C+±found meshes, and the chunk assigned to them.

My setup uses PrimaryAssetLabel for specifying the chunk which the meshes should be assigned to, albeit it turns out that assets found using for example **ConstructorHelpers::FObjectFinder** are inserted directly into chunk 0, which is not intended.

An example of finding an asset is as follows (in .cpp file):

```
static ConstructorHelpers::FObjectFinder<USkeletalMesh> MyCharacterFinder(TEXT("SkeletalMesh'/Game/MyGame/Characters/MyCharacter.MyCharacter'"));
	if (MyCharacterFinder.Succeeded())
		MyCharacter = MyCharacterFinder.Object;

```

And in the header:

```
USkeletalMesh* MyCharacter;

```

I have attempted using a property specifier, for example:

```
UPROPERTY(AssetRegistrySearchable)
USkeletalMesh* MyCharacter;

```

Although this seemed to have no effect. Am I missing something?

EDIT: Also attempted “AssetBundles” without any different result.

---

<div class="post-metadata">

**Author:** ![TheS3raph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheS3raph](https://forums.unrealengine.com/u/TheS3raph)\
**Post date:** [October 31, 2021, 2:00am UTC](https://forums.unrealengine.com/t/constructorhelpers-and-chunks/490069/2 "2021-10-31T02:00:39Z")

</div>

After having worked on it, here is an update:

Finding no solution to this I instead opted to make a blueprint and parent said blueprint to the C++ class. Then I set the blueprint classes I previously found using ConstructorHelpers on that blueprint instead.

An example of a blueprint class that can be set on my blueprint can be seen in the following snippet:

```
UPROPERTY(EditDefaultsOnly)
TSubclassOf<UMyWidget> MyWidgetClass;

```

It should be warned that by default the value of this variable is “None”, and therefore a nullptr, which means that nullptr checking has to be performed carefully. However, that would also be the case with ConstructorHelpers, although it would at least shows up a warning box if the asset was not found.
