1
This commit is contained in:
@@ -603,6 +603,7 @@ namespace BITKit
|
||||
self.SetActive(visibleOnEmpty || result);
|
||||
return result;
|
||||
}
|
||||
public static T Get<T>(this VisualElement self ,int index = 0) where T : VisualElement => self.Q<T>($"{typeof(T).Name}--{index}");
|
||||
public static T Create<T>(this VisualElement self, string name = Constant.EmetyString) where T : VisualElement, new()
|
||||
{
|
||||
var element = new T();
|
||||
|
Reference in New Issue
Block a user