DefaultPawn Class Still Spawns

I know this question has been asked before, but every answer I have looked at has not been helpful to me at all. What I am trying to do is stop the DefaultPawn class from spawning. I made a new empty game mode and a new empty pawn blueprint, and I assigned those in my project settings. However, the stubborn DefaultPawn class keeps spawning regardless of what I do. I just want it gone but I am stuck and I can’t figure it out.

So in short my question is, how do I get rid of it?

EDIT:

I forgot to mention this is a completely blank project. No template, no start content, just completely blank.

Somewhere you are either spawning the default pawn using code OR you dragged one out into the world in the editor.

Since you have a new project I might recommend remaking it if you cant find the culprit. If you used a template then look through the code that came with it.

Hope it helps.

Sorry, I forgot to mention this is a completely blank project. No starter content, no nothing. I did not make any code yet, just two empty classes to test if the DefaultPawn class still spawns. Unfortunately it does :confused:

If you want a hacky yet simple workaround, you could create a custom default pawn like you are doing currently, but edit it’s blueprint begin play code to immediately call destroy actor on self. The default pawn will still spawn, but it will not persist.
If you just want the pawn to never get spawned at all, you could override the SpawnDefaultPawnFor function in GameMode that is exposed to blueprints like so:

101936-capture.png

Just be sure to leave the return value empty and viola, nothing spawns.
Hope this helps you with an awesome project!
-Spiris
-Edited for clarity

Second solution worked liked charm! I was finally able to spawn my own pawn without that annoying sphere popping out of nowhere. Thank you

Where are these functions? I can’t see them