- Home /
Scene Camera continues to move after letting go of W
So I'm trying to move my camera in the scene, and then I let go of my W and D Key, and the camera keeps moving. Keeps speeding up. All of a sudden I have no control of Unity for like 5-10 seconds, and now I'm like 500x the distance away from my scene. I have no clue what's going on, but I literally can't turn my camera 90 degrees without it glitching out. It's literally impossible to work right now.
Here is a short video of the issue. https://streamable.com/duuvki
Can you post the part of the code that is altering the camera position/rotation, I don't think anyone can help without it
I'm not sure what you're talking about. This is the scene view. A camera shouldn't affect anything in regards to moving around the scene.
We want the script that controls the camera, Since for example the only thing I know that causes this is adding force to a rigidbody every frame which causes it to accelerate fast and do to low linear drag, it keeps going.
Answer by Noblauch · May 06, 2020 at 06:50 PM
Did you check your viewport camera settings for crazy values? Seems like your scene is very huge, maybe you turned it up to jupiter. But your machine seems to be at its limit too. Other thing could be editor scripts that control the camera. Try to make a new scene with a few objects and check the behaviour.
Answer by Red7silence · May 06, 2020 at 07:23 PM
So I Reset the Scene Camera settings, still same issue. It isn't my computer either. I have an 8 core, 3.8 ghz, 64 gigs of RAM at 3000mhz, and a 1080 Video Card. So my computer isn't lagging at all. It's just this one scene. Starting a new project does make the issue go away. That being said, I need to figure out what is causing this issue, so it doesn't happen later on.
I did do some troubleshooting and determined that it is Gaia that is causing the lag. I'm not sure why, or what to look for now that I know it's Gaia that's creating this issue, but could use some more assistance. Thanks for your guys' help.
What is Gaia? You could take a look at the Profiler and see what Unity is doing every frame: Window -> Analysis -> Profiler then in the profiler tab click the dropdown that says playmode beneath the little record button and select Editor. Record a few seconds while the editor is behaving weird and then try to find some function calls or rendering that causes your machine to freak out. Since in that scene it looks like your computer can't handle it, something must be wrong there.
Your answer
Follow this Question
Related Questions
Close objects in scene view are cut 2 Answers
How to re-create this built-in RP setup with URP? 0 Answers
how to make my camera follow the character to the scene where my character transported? 1 Answer
How can I switch back to 1st-person-cam mode in Scene? (right-click + Arrows) 2 Answers
Tags not working 1 Answer