Skip to content

Commit dda8855

Browse files
author
Takayuki MATSUOKA
committed
Add supporting 2D mode
1 parent 94886c2 commit dda8855

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/SceneViewFovControl/Editor/Status.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ public void OnScene(SceneView sceneView) {
1515
return;
1616
}
1717

18+
if(sceneView.in2DMode) {
19+
return;
20+
}
21+
1822
Camera camera = sceneView.camera;
1923
if(fov == 0.0f) {
2024
fov = camera.fieldOfView;

0 commit comments

Comments
 (0)