Skip to content

Commit

Permalink
Update tooltip/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed Mar 5, 2024
1 parent d6ac0bd commit 4168c18
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Runtime/Interaction/HPUIInteractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,26 @@ namespace ubco.ovilab.HPUI.Interaction
public class HPUIInteractor: XRBaseInteractor, IHPUIInteractor
{
// TODO move these to an asset?
[Tooltip("The time threshold at which an interaction would be treated as a gesture.")]
[SerializeField]
private float tapTimeThreshold;
/// <summary>
/// The time threshold at which an interaction would be treated as a gesture.
/// That is, if the interactor is in contact with an
/// interactable for more than this threshold, it would be
/// treated as as gesture.
/// </summary>
public float TapTimeThreshold { get => tapTimeThreshold; set => tapTimeThreshold = value; }

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

[SerializeField]
Expand Down

0 comments on commit 4168c18

Please sign in to comment.