Skip to content

Instantly share code, notes, and snippets.

@Denchyaknow
Created August 21, 2023 07:41
Show Gist options
  • Save Denchyaknow/880833d9deac4d4934c956ac475240ad to your computer and use it in GitHub Desktop.
Save Denchyaknow/880833d9deac4d4934c956ac475240ad to your computer and use it in GitHub Desktop.
A HowTo on forcing a Custom Inspector to Deselect the current input
if (GUILayout.Button("Your Button"))
{
GUI.FocusControl(null);
}
_data.ItemValue = EditorGUILayout.IntField("VALUE", (int)_data.ItemValue, textAreaStyle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment