A game about forced loneliness, made by TACStudios
1#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS 2using System; 3using UnityEngine.UIElements; 4 5namespace UnityEngine.InputSystem.Editor 6{ 7 internal static class VisualElementExtensions 8 { 9 public static TElement Q<TElement>(this VisualElement visualElement, string name) where TElement : VisualElement 10 { 11 var element = UQueryExtensions.Q<TElement>(visualElement, name); 12 if (element == null) 13 throw new InvalidOperationException( 14 $"Expected a visual element called '{name}' of type '{typeof(TElement)}' to exist " + 15 $"but none was found."); 16 17 return element; 18 } 19 } 20} 21 22#endif