Removing the text field focus when moving a node

If, like me, you’re deeply annoyed by the input focus on a text field being held by a node you’re not actually moving, it’s possible to clear the current input focus when dragging with:

GUI.FocusControl(null);

I put this alongside my assignment of GUI.changed = true, so it only clears the focus when you actually drag something.

It’s the little things…

6 Likes

Thank you for the tip!

Privacy & Terms