- Home /
Camera switch
When i switch camera (for example FPP to TPP, TPP to FPP) i can see "previous state" of camera. I mean when if i will turn left using FPP camera, change camera to TPP, turn right and change camera once again to FPP then i can see (for a while, it's just quick blink) what was last vision of this camera and then it shows what it should. I've tried enabling/disabling whole Camera GameObjects and enabling/disabling just Camera components. Both cameras rotate even if they are disabled. How to fix that?
Are you moving the cameras in LateUpdate() ? If not this may be the cause.
Both cameras are children of Character Controller, so they move automatically. To rotate them i am using default $$anonymous$$ouse Look script (with some edits) but even if i disable rotate script it still happens when i just rotate character.
You can still try changing Update() for LateUpdate() in the $$anonymous$$ouse Look Script. You could also try having one camera that moves between two Empty Camera position objects(Placed where your cameras are at the moment) when you switch viewpoint.
It may work but i would prefer to use seperate cameras because both of them have to use other settings and effects and changing them in script would need many lines of code.
btw.changing to LateUpdate() doesn't change anything.
Your answer
Follow this Question
Related Questions
Switching Cameras - Confusion with Two Code Samples 2 Answers
Play anim, javascript 1 Answer
Switch to second camera which has all the GUI 3 Answers
Disabling first actor when switching to another camera. 0 Answers
My game pauses when i switch cameras 2 Answers