Editor Camera Visible as Sphere In-Game
I haven't found a consistent cause, but sometimes the editor camera will begin to appear in-game, with no way to stop it. I haven't seen this behavior prior to 4.15 and it seems to happen after migrating maps from one 4.15 project to another. The outliner shows the camera being spawned after begin play.
This is an example editor view:
Here is the in-game view of that viewpoint. Note the sphere:
Here is a wireframe showing the object to be a default unreal sphere:
The work-around I'm using is to leave the editor camera in a place that can't be seen, but this seems like a bug with the material the editor camera is using or the visible in-game flag getting reset. Is there a better work around or known root cause?
asked Mar 08 '17 at 10:06 AM in Bug Reports
As I was reducing the project down to post for troubleshooting, I noticed that not only was a CameraObject being spawned automatically, but so was a DefaultPawn.
I added a GetAllActors in a test scene to find all the CameraObjects, and called destroy on all but the camera attached to my character pawn. The sphere was still there. When I repeated this for all DefaultPawn objects, the sphere was gone. Clicking the created DefaultPawn object in the world outliner while running the game in PIE shows its origin as exactly where the sphere I observed would be centered.
It turns out the game mode was set to the default 'GameMode' rather than the custom one I created, so this isn't so much a bug as confusion on my part.
As a quality of life suggestion: when a project specifies a game mode that can not be found (as in my case where the config files copied over to the new project specified a custom game mode, but the game mode definition was not considered a dependency of the maps I migrated and thus were not in the content directory) it should report the error in the editor window.
Thank you for responding, Thomas
Follow this question
Once you sign in you will be able to subscribe for any updates here