Big ball shows up in random places in my scene on play

Hi ,

That’s most likely the DefaultPawn actor. You probably can move it around the scene with W, A, S, and D keys. It’s set automatically in the GameMode and I don’t think you can remove it or even set it to None. However, you can very easily change it to any other Pawn class and potentially hide it from the game. Below is the step by step guide on how to accomplish this:

First, create a blueprint class based on Pawn (Right click in Content Browser > Blueprint Class > Pawn). Name it whatever you like (Let’s call it BP_MyPawn).

Next, open it and on the right side, in the Details panel, under the Rendering category, check “Actor Hidden In Game”. Compile and close it.

Finally, open your Project Settings (Click on “Settings” above the Viewport > Project Settings). Navigate to “Maps & Modes” settings. Expand the default GameMode options by clicking on that arrow below it and change the “Default Pawn Class” to the newly created Pawn blueprint “BP_MyPawn” (You might have to set it in the World Settings as well if it doesn’t update automatically. You can access it from Settings > World Settings ). That’s it! close the Project Settings window, Click Play and it should not be visible anymore.

Note that once you click Play, you will not be able to navigate through your scene anymore with mouse and WASD keys as before. Those input behaviors were set by default in the DefaultPawn. If you don’t want to implement your very own behaviors, you can very easily bring those previous input functionalities back. Open BP_MyPawn, (Click on Open Full Blueprint Editor if it opens in Class Defaults mode). On the top panel that appears, click on Class Settings and on the right side in the Details panel change the Parent Class to DefaultPawn, making sure that “Actor Hidden In Game” remains checked.

Hope it helps.

Happy Holidays,

Vizgin

3 Likes