Weird Camera view issue..

Hi guys. I’m at the final version of my game.
I tried to remove all the errors as possible as I can to package my game.
But suddenly my Player’s camera view functions wrong…
it looks like Camera moves it’s location inside the player’s body I guess.

Could you tell me what’s wrong with this?

Here’s my video

Hello,

Oh boy. This could literally be anything. And you know the game better than anyone.

The first thing I would suggest is to track the world position of the camera with a print string and event tick. You can try doing the same with the location of the boom/spring arm component, but I am unsure if it will actually give you any changes in value.

The next thing I would do is to deactivate that camera, and add another camera to your character, activating that one, and see if you have the same issue.
-If you do have the same issue, there could be a collision somewhere forcing the camera into the player… or wherever the camera is actually located.
-If you do not have the same issue, you’ll need to troubleshoot any code that is attached to that camera.

Start there.

1 Like


Thanks for replying !

I figured out what’s happening.
I test with my backup file, when I delete the saved folder for decrease the size of project,
that weird camera view happens …

My developer friends said it’s ok to delete that saved folder but…
yeap I guess not haha…

Should I remain that saved folder? :thinking:

1 Like

NEVER delete a folder OUTSIDE of Unreal. (Unless you HAVE to. Sometimes a folder will prevent Unreal from opening.)

Why were you deleting the save folder?

1 Like

Because the ‘Saved’ folder’s size is so big…

there is someone has same reason like me.

Should I don’t delete it?

You can delete

  • Saved
  • Intermediate
  • DerivedDataCache
  • Binaries

if the game is not running with no problems. They are temp folders that are recreated on project build.

Saved will hold save game files and config files though.

As for the problem I would look into the camera boom & camera setup. Your camera is probably detecting a collision on the character itself causing it to move.

Did you add the weapon during the time when the weird behavior started? Try setting the weapons collision and trace response to none and see if the behavior changes.

Did you change anything in the collision settings of the camera and capsule component?

You could also be getting an error where your character isn’t even spawning. The camera then spawns at 0,0,0 with no player character. This could be due to a level override setting for the game mode if the player character is set to none and no possession occurs during gameplay.

1 Like

Hi thanks for replying!

Actually I tried with my Backup Project to not delete the ‘Saved’ Folder
and Packaging.

Most interest thing is… Everything works perfect in Unreal Editor.
So I assume the Camera setting is good to go :thinking:

Just after Packaged, Camera works weirdy, Even it works perfectly as Standalone mode in Unreal Editor.
Don’t know any idea why it different between Standalone mode and Packaged game.

On the level Level2_school go into world settings and try expanding “Selected Game Mode” and see if all of the parameters are correct (player character and controller are set etc)

1 Like

Yeah… sadly Everything is ok…
Default pawn class and the playcontroller is fine tho

I tried to change the pawn class to random Ai character
And it’s clearly camera is stuck on their head

Try ejecting from the game mid play (can’t be in PIE only in the viewport) and see if your default character spawns in the problematic level. Select him in the outliner and focus on him and see if his hierarchy is intact.

It was asset issue from marketplace…
well thanks for helping me a lot! and sorry for late reply :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.