Skip to content

Commit a266239

Browse files
authored
Merge pull request #847 from PlayEveryWare/fix/set-selected-on-update
fix: Do not set the selected item during each Update()
2 parents 48dd250 + 2cf2fb7 commit a266239

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Assets/Scripts/StandardSamples/UI/Common/SampleMenu.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ protected virtual void OnEnable()
211211
/// </summary>
212212
protected virtual void Update()
213213
{
214-
// If nothing is selected, set the selected (focused) control to be
215-
// UIFirstSelected (if that field has been set).
216-
SetSelected();
214+
// Default behavior is to take no action.
217215
}
218216

219217
/// <summary>

0 commit comments

Comments
 (0)