// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved. // This code can only be used under the standard Unity Asset Store End User License Agreement // A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms using Doozy.Runtime.UIElements.Extensions; using UnityEditor; using UnityEditor.UIElements; using UnityEngine.UIElements; namespace Doozy.Editor.UIElements { public static class BindableElementExtensions { /// /// Query the target's children for a Label. If one is found, schedule its DisplayStyle to None /// Useful to hide a PropertyField's label /// /// BindableElement public static T TryToHideLabel(this T target) where T : VisualElement, IBindable { target.visible = false; target.schedule.Execute(() => { target.Q