public RedOwlBaseField() : base("", null) { if (IsInitalized) { return; } RedOwlUtils.Setup(this, this); BuildUI(); IsInitalized = true; }
public RedOwlVisualElement() { if (IsInitalized) { return; } RedOwlUtils.Setup(this, this); BuildUI(); IsInitalized = true; }
protected virtual void OnEnable() { AssemblyReloadEvents.beforeAssemblyReload += OnBeforeAssemblyReload; if (IsInitalized) { return; } rootVisualElement.RegisterCallback <MouseEnterEvent>(e => { instance.Focus(); }); RedOwlUtils.Setup(this, rootVisualElement); BuildUI(); IsInitalized = true; }