static void OnSceneGUI(SceneView sceneView) { if (!EditorApplication.isPlaying || !showSelectors) { return; } Vector3 forward = Vector3.forward; using (HandleUtil.With(Color.green)) { foreach (Danmaku danmaku in Danmaku.All) { if (danmaku == null) { continue; } selectedDanmaku = danmaku; Handles.matrix = Matrix4x4.TRS(danmaku.Position, Quaternion.Euler(0f, 0f, danmaku.Rotation), danmaku.Size * Vector3.one); float colliderSize = danmaku.Prefab.ColliderSize.Max(); Handles.DrawWireDisc(danmaku.Prefab.ColliderOffset, forward, colliderSize); Handles.DrawLine(Vector3.zero, colliderSize * Vector3.right); } } }