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.
18 lines
438 B
C#
18 lines
438 B
C#
3 months ago
|
|
||
|
using UnityEngine.UIElements;
|
||
|
|
||
|
namespace AV.UITK
|
||
|
{
|
||
|
public static class VisualElementExtensions
|
||
|
{
|
||
|
public static FluentElement<TVisualElement> Fluent<TVisualElement>(this TVisualElement x) where TVisualElement : VisualElement
|
||
|
{
|
||
|
return x;
|
||
|
}
|
||
|
|
||
|
public static FluentElement<VisualElement> Fluent(this IEventHandler x)
|
||
|
{
|
||
|
return x as VisualElement;
|
||
|
}
|
||
|
}
|
||
|
}
|