# Finding a BP-project's Character/Controller from C++ AGameModeBase

**URL:** <https://forums.unrealengine.com/t/finding-a-bp-projects-character-controller-from-c-agamemodebase/236328>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 19, 2021, 8:46pm UTC](https://forums.unrealengine.com/t/finding-a-bp-projects-character-controller-from-c-agamemodebase/236328 "2021-06-19T20:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inconceivable](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inconceivable](https://forums.unrealengine.com/u/Inconceivable)\
**Post date:** [June 19, 2021, 8:46pm UTC](https://forums.unrealengine.com/t/finding-a-bp-projects-character-controller-from-c-agamemodebase/236328/1 "2021-06-19T20:46:51Z")

</div>

I have a project that I created as a Blueprint project. I want to use a custom Game Mode, and I’ve set all the same ::StaticClass()'s as the default game mode uses. But the PlayerControllerClass and DefaultPawnClass settings elude me, as these exist as blueprint assets. I naively tried:

`DefaultPawnClass = LoadClass<APlayerController>(NULL, L"TopDownCharacter", NULL, LOAD_None, NULL);`

But it fails to spawn with a warning of

`LogUObjectGlobals: Warning: Failed to find object 'Class None.TopDownCharacter'`
