Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Prefab Mode scene view camera

Discussion in 'Prefabs' started by impulse9, Apr 28, 2019.

  1. impulse9

    impulse9

    Joined:
    Sep 17, 2015
    Posts:
    12
    Is there a way to access editor's scene view camera when in prefab mode? SceneView.GetAllSceneCameras() doesn't seem to reference it.

    edit: It turns out SceneView.GetAllSceneCameras returns camera correctly but when I access it from PrefabStage.prefabStageOpened event it's too early and I get reference to previous scene camera
     
    Last edited: Apr 28, 2019
  2. runevision

    runevision

    Unity Technologies

    Joined:
    Nov 28, 2007
    Posts:
    1,631
    It's the same Scene view and the same Camera. It just changes position etc. when entering and exiting Prefab Mode.
     
    impulse9 likes this.