Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Matching scene view with Camera View?

Discussion in 'Editor & General Support' started by Shadowing, Apr 9, 2018.

  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,535
    Is there a simple way to make my scene view match my Main camera view?
    if not that would be super useful when working on scenes where your camera doesn't move.
     
    DaPhantomForce and Tymianek like this.
  2. OneManBandGames

    OneManBandGames

    Joined:
    Dec 7, 2014
    Posts:
    207
    You can align your scene view camera to your game camera: Select your game camera object in the hierarchy, and use GameObject > Align View To Selected from the Unity Editor Menu.
    However that only takes care of alignment, your scene view might still look different due to Projection Size, clipping planes, etc.
    I'm not 100% sure if you can fix this via an Editor Script, but the last answer on this thread looks promising: https://answers.unity.com/questions...itor-camera.html?page=2&pageSize=5&sort=votes

    If I understand it correctly, this approach would allow you to access the camera object that is rendering your scene view, so you could copy all your game camera parameters 1:1 in a script, then your scene view should look exactly the same.
     
    ugotstoopt likes this.
  3. Pixasso

    Pixasso

    Joined:
    Mar 4, 2020
    Posts:
    1
    I found a few quick methods to help out with this question as it was something that I was recently looking for myself. The methods follow below (Mac & PC-friendly options). I hope that they help anyone looking for this same info…

    1. Key Command Method - While selecting your camera within the Hierarchy press the following keys:
    a. Mac = Command + Shift + F
    b. PC = Control + Shift + F

    2. Main Navigation Option - While having your main camera selected navigate to the applications main menu:
    GameObject > Align With View
     
    d2clon, Tymianek, Sovednerot1 and 6 others like this.
  4. nakoustix

    nakoustix

    Joined:
    Apr 21, 2019
    Posts:
    3
    perfect! thank you very much! I wasn't aware of this command and when I, for myself, stumbled across @OP's problem, your input was very helpful.
     
unityunity