Editor Camera Skewed

So I was messing around by pressing 2 a bunch in editor, and now my camera is skewed, here is a screenshot. Notice from the perspective in the top right that it is indeed my camera that is skewed and not my game objects.

4 Likes

4 Answers

4

Revised answer:

  • Right-click on the transformation gizmo at the top right corner will reset the scene view camera to a fixed view
  • Closing and reopening the scene view tab (right-click on the header label) will reset the camera to its default position
  • Restarting the editor will reset the the camera

@Bunny83 noted that focusing a GameObject with the F hotkey, will not reset the camera orientation.

Thanks the transformation gizmo did the trick :)

–

Actually pressing "F" won't align the camera rotation around the local z axis. It will only move the camera and rotate the camera around y and local x. Though pressing one of the fixed view arrows does reset the view. @Random10000000000000000000000 Usually it shouldn't be possible to rotate the sceneview camera like that with the stock controls. Do you, by any change, use custom sceneview controls? Can you remember what you did right before that happend?

–

"Restarting the editor will reset the the camera" - nope, in many cases when developing it did not fixed weird camera tilt. Camera stayed where it was.

–

transformation gizmo right click then select "free" that did it for me. thanks.

–

I mean, that's up to you when you want to use them. But you can create some sort of timer and then just call the methods when you want to use them...something like this as an example, if it's just time based you can just call the methods, up to you. private float CurrentTime; Private void Update() { CurrentTime += Time.deltaTime; if (CurrentTime >= 10) { AttackMethod1(); } If (CurrentTime >= 20) { AttackMethod2(); CurrentTime = 0; } }

–

pictures dont kick off a guessgame you know :slight_smile:

edit: picture was to small xP

I'm glad I could help! Goodluck with your learning

–

To anyone who comes across this:

select main camera β†’ make sure its rotation is 0,0,0 (you can change it afterwards back to what it was) β†’
select the GameObject menu on the top β†’ β€œAlign view to seleced”

this is the solution you are probably searching

Thank you so much!

–

Close the scene view and open it again, it should solve the problem.

Thanks a lot mate :+1:

–