title: Setting a hierarchy filter via script
body: <p>In the top of the Hierarchy window of the Unity Editor there is a field for filtering the hierarchy:</p>
  
  <p><img src="https://i.stack.imgur.com/FjDBY.png" alt="unity hierarchy window: filter"></p>
  
  <p>My question is if you can set that filter from an editor script and how. I can barely find anything according to this on the web.</p>
  
  <p>Thanks in advance.</p>