コード例 #1
0
ファイル: EditMode.cs プロジェクト: yaoya/UnityDecompiled
 private static void EditModeChanged(Bounds bounds)
 {
     if (EditMode.editMode != EditMode.SceneViewEditMode.None && SceneView.lastActiveSceneView != null && SceneView.lastActiveSceneView.camera != null && !EditMode.SeenByCamera(SceneView.lastActiveSceneView.camera, bounds))
     {
         SceneView.lastActiveSceneView.Frame(bounds, EditorApplication.isPlaying);
     }
     SceneView.RepaintAll();
 }
コード例 #2
0
 private static void EditModeChanged(Bounds bounds)
 {
     if (EditMode.editMode != EditMode.SceneViewEditMode.None && (UnityEngine.Object)SceneView.lastActiveSceneView != (UnityEngine.Object)null && ((UnityEngine.Object)SceneView.lastActiveSceneView.camera != (UnityEngine.Object)null && !EditMode.SeenByCamera(SceneView.lastActiveSceneView.camera, bounds)))
     {
         SceneView.lastActiveSceneView.Frame(bounds);
     }
     SceneView.RepaintAll();
 }