Skip to content

Commit 4168c18

Browse files
committed
Update tooltip/docs
1 parent d6ac0bd commit 4168c18

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Runtime/Interaction/HPUIInteractor.cs

+14
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,26 @@ namespace ubco.ovilab.HPUI.Interaction
1414
public class HPUIInteractor: XRBaseInteractor, IHPUIInteractor
1515
{
1616
// TODO move these to an asset?
17+
[Tooltip("The time threshold at which an interaction would be treated as a gesture.")]
1718
[SerializeField]
1819
private float tapTimeThreshold;
20+
/// <summary>
21+
/// The time threshold at which an interaction would be treated as a gesture.
22+
/// That is, if the interactor is in contact with an
23+
/// interactable for more than this threshold, it would be
24+
/// treated as as gesture.
25+
/// </summary>
1926
public float TapTimeThreshold { get => tapTimeThreshold; set => tapTimeThreshold = value; }
2027

28+
[Tooltip("The distance threshold at which an interaction would be treated as a gesture.")]
2129
[SerializeField]
2230
private float tapDistanceThreshold;
31+
/// <summary>
32+
/// The distance threshold at which an interaction would be treated as a gesture.
33+
/// That is, if the interactor has moved more than this value
34+
/// after coming into contact with a interactable, it would be
35+
/// treated as as gesture.
36+
/// </summary>
2337
public float TapDistanceThreshold { get => tapDistanceThreshold; set => tapDistanceThreshold = value; }
2438

2539
[SerializeField]

0 commit comments

Comments
 (0)