Skip to content

Commit

Permalink
Merge pull request #2242 from markgrossnickle/master
Browse files Browse the repository at this point in the history
Keyboard Fix for Missing Keys Bug
  • Loading branch information
David Kline authored Jun 4, 2018
2 parents 8303a5b + 8d2a15b commit 92d85dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/HoloToolkit/UX/Scripts/UICollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ private void Start()
// Verify this is attached to a GameObject with a rect transform
rectTransform = GetComponent<RectTransform>();

if (!Application.isEditor) { return; }

// Collect children items already added (likely added in the Editor)
CollectItems();
UpdateLayout();
Expand Down Expand Up @@ -121,7 +123,7 @@ public void RemoveAllItems()
}

private void CollectItems()
{
{
Items.Clear();

foreach (Transform childTransform in transform)
Expand Down

0 comments on commit 92d85dd

Please sign in to comment.