Close blendshape selection window when it loses focus

This commit is contained in:
bd_ 2022-11-30 12:41:24 -08:00
parent 74861c5fff
commit a259acbe41

View File

@ -22,6 +22,11 @@ namespace nadena.dev.modular_avatar.core.editor
titleContent = new GUIContent("Select blendshapes"); titleContent = new GUIContent("Select blendshapes");
} }
private void OnLostFocus()
{
Close();
}
void OnGUI() void OnGUI()
{ {
var rect = new Rect(0, 0, position.width, position.height); var rect = new Rect(0, 0, position.width, position.height);