Skip to content

Instantly share code, notes, and snippets.

View zhangdong456's full-sized avatar

Dz zhangdong456

View GitHub Profile
@zhangdong456
zhangdong456 / SceneViewUIObjectPickerContextWindow.cs
Created September 26, 2025 08:49 — forked from yasirkula/SceneViewUIObjectPickerContextWindow.cs
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 UnityEngine;
using UnityEngine.UI;
#if UNITY_2021_2_OR_NEWER
using PrefabStage = UnityEditor.SceneManagement.PrefabStage;
using PrefabStageUtility = UnityEditor.SceneManagement.PrefabStageUtility;