概要
Scene ビューの描画モードが変更された時に
using UnityEditor; using UnityEngine; [InitializeOnLoad] public static class Example { static Example() { var sceneViews = Resources.FindObjectsOfTypeAll<SceneView>(); foreach ( var sceneView in sceneViews ) { sceneView.onCameraModeChanged += mode => Debug.Log( mode ); } } }
SceneView.onCameraModeChanged
が呼び出されます