# Why "InputComponent" is null when spawn from BP !?

**URL:** <https://forums.unrealengine.com/t/why-inputcomponent-is-null-when-spawn-from-bp/581079>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 13, 2022, 7:11pm UTC](https://forums.unrealengine.com/t/why-inputcomponent-is-null-when-spawn-from-bp/581079 "2022-06-13T19:11:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Vagabond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Vagabond](https://forums.unrealengine.com/u/_Vagabond)\
**Post date:** [June 13, 2022, 7:11pm UTC](https://forums.unrealengine.com/t/why-inputcomponent-is-null-when-spawn-from-bp/581079/1 "2022-06-13T19:11:44Z")

</div>

Hi, using UE5.0.2

i’m having a custom Pawn which when set as default in the GameMode spawns automaically and works correctly regarding keybinding (i.e. “InputComponent” is not NULL), but when i spawn an instance from the level blueprint or the game manager blueprint, the “InputComponent” is NULL.

Is there’s some known bug or i’m doing something wrong ?

This is the spawn BP code:

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

---

<div class="post-metadata">

**Author:** ![\_Vagabond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Vagabond](https://forums.unrealengine.com/u/_Vagabond)\
**Post date:** [June 13, 2022, 7:16pm UTC](https://forums.unrealengine.com/t/why-inputcomponent-is-null-when-spawn-from-bp/581079/2 "2022-06-13T19:16:57Z")

</div>

I figured it out… i had to enable auto possess in BP and choose Player 0. I guess this enabled the InputComponent !

Cheers !
