Skip to content

Instantly share code, notes, and snippets.

View BenDevelopment's full-sized avatar

Benjamin Hoffmann BenDevelopment

  • Hoffmann
  • Strasbourg
View GitHub Profile
@yasirkula
yasirkula / SceneViewObjectPickerContextWindow.cs
Last active March 9, 2026 14:29
Select the 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.Pool;
using UnityEngine.UI;
public class SceneViewObjectPickerContextWindow : EditorWindow
@scho
scho / BindingExtensions.cs
Last active May 8, 2023 17:19
Unity UIToolkit Runtime Binding Extension
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine.UIElements;
namespace UI
{
public static class BindingExtensions
{
public static void Bind(this VisualElement element, object data)