How to not keep focus after pressing a button?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

I don’t want after I press a button that it gets focus. My current solution to this is when a button is pressed i immediately take away its focus. But I have to do this in code, so is there a setting such that this won’t happen?

:bust_in_silhouette: Reply From: njamster

Set Base Button > Enabled Focus Mode in the inspector to “None”.