You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/Plugins/Smart-Inspector/Base/Utils/VisualElementUtils.cs

17 lines
434 B
C#

3 months ago
using System.Reflection;
using HarmonyLib;
using UnityEngine;
using UnityEngine.UIElements;
namespace AV.Inspector
{
internal static class VisualElementUtils
{
static readonly PropertyInfo worldClip = AccessTools.Property(typeof(VisualElement), "worldClip");
public static Rect GetWorldClip(this VisualElement element)
{
return (Rect)worldClip.GetValue(element);
}
}
}