UE 5.2 Best way to hide Actor or Component in Editor, Blueprint

in order to use that I need a condition. how to I pipe that condition into my BP?