Skip to content

Instantly share code, notes, and snippets.

@yasirkula
yasirkula / SceneViewUIObjectPickerContextWindow.cs
Last active January 13, 2026 14:22
Select the UI object under the cursor via right click in Unity's Scene window
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.UI;
public class SceneViewUIObjectPickerContextWindow : EditorWindow