Skip to content

Instantly share code, notes, and snippets.

View BenDevelopment's full-sized avatar

Benjamin Hoffmann BenDevelopment

  • Hoffmann
  • Strasbourg
View GitHub Profile
@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)