Created
August 21, 2023 07:41
-
-
Save Denchyaknow/880833d9deac4d4934c956ac475240ad to your computer and use it in GitHub Desktop.
A HowTo on forcing a Custom Inspector to Deselect the current input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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