ScriptReference/EditorGUI.EndChangeCheck #199
Replies: 1 comment
-
|
Note that Begin/EndChangeCheck can be nested. For example: string foo = "";
int bar = 0;
EditorGUI.BeginChangeCheck();
foo = EditorGUILayout.TextField(foo);
EditorGUI.BeginChangeCheck();
bar = EditorGUILayout.IntField(bar);
if (EditorGUILayout.EndChangeCheck())
{
Debug.Log("Bar changed");
}
if (EditorGUILayout.EndChangeCheck())
{
Debug.Log("Foo or Bar changed");
}Also, as mentioned in the docs this is based on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/EditorGUI.EndChangeCheck
https://docs.unity3d.com/ScriptReference/EditorGUI.EndChangeCheck.html
Beta Was this translation helpful? Give feedback.
All reactions