Skip to content

Commit

Permalink
Merge pull request #10 from dotMorten/GestureManager/FocusedObject
Browse files Browse the repository at this point in the history
Added FocusedObject property
  • Loading branch information
NeerajW committed Apr 18, 2016
2 parents 46c64a7 + 37c43f2 commit 7748e8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Assets/HoloToolkit/Input/GestureManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ public GameObject OverrideFocusedObject
{
get; set;
}

/// <summary>
/// Gets the currently focused object, or null if none.
/// </summary>
public GameObject FocusedObject
{
get { return focusedObject; }
}

private GestureRecognizer gestureRecognizer;
private GameObject focusedObject;
Expand Down Expand Up @@ -81,4 +89,4 @@ void OnDestroy()
gestureRecognizer.TappedEvent -= GestureRecognizer_TappedEvent;
}
}
}
}

0 comments on commit 7748e8a

Please sign in to comment.