Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 5f1d635

Browse files
committed
Only filter transform tree on end edit
1 parent e0f7fad commit 5f1d635

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ObjectExplorer/SceneExplorer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,13 @@ public override void ConstructUI(GameObject content)
210210
UIFactory.SetLayoutElement(filterRow, minHeight: 25, flexibleHeight: 0);
211211

212212
//Filter input field
213-
var inputField = UIFactory.CreateInputField(filterRow, "FilterInput", "Search...");
213+
var inputField = UIFactory.CreateInputField(filterRow, "FilterInput", "Search and press enter...");
214214
inputField.Component.targetGraphic.color = new Color(0.2f, 0.2f, 0.2f);
215215
RuntimeProvider.Instance.SetColorBlock(inputField.Component, new Color(0.4f, 0.4f, 0.4f), new Color(0.2f, 0.2f, 0.2f),
216216
new Color(0.08f, 0.08f, 0.08f));
217217
UIFactory.SetLayoutElement(inputField.UIRoot, minHeight: 25);
218-
inputField.OnValueChanged += OnFilterInput;
218+
//inputField.OnValueChanged += OnFilterInput;
219+
inputField.Component.GetOnEndEdit().AddListener(OnFilterInput);
219220

220221
// refresh row
221222

0 commit comments

Comments
 (0)