Skip to content

Commit 5fa577e

Browse files
EUROPE\artsouflEUROPE\artsoufl
authored andcommitted
[+] Add tags on new public values
1 parent 9b2851d commit 5fa577e

File tree

1 file changed

+16
-1
lines changed
  • Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Sliders

1 file changed

+16
-1
lines changed

Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Sliders/PinchSlider.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public float SliderValue
5353
[Tooltip("The gameObject that contains the trackVisuals. This will get rotated to match the slider axis")]
5454
[SerializeField]
5555
private GameObject trackVisuals = null;
56+
/// <summary>
57+
/// Property accessor of trackVisuals
58+
/// </summary>
5659
public GameObject TrackVisuals
5760
{
5861
get
@@ -69,6 +72,9 @@ public GameObject TrackVisuals
6972
[Tooltip("The gameObject that contains the tickMarks. This will get rotated to match the slider axis")]
7073
[SerializeField]
7174
private GameObject tickMarks = null;
75+
/// <summary>
76+
/// Property accessor of tickMarks
77+
/// </summary>
7278
public GameObject TickMarks
7379
{
7480
get
@@ -88,6 +94,9 @@ public GameObject TickMarks
8894
[Tooltip("The axis the slider moves along")]
8995
[SerializeField]
9096
private SliderAxis sliderAxis = SliderAxis.XAxis;
97+
/// <summary>
98+
/// Property accessor of sliderAxis
99+
/// </summary>
91100
public SliderAxis CurrentSliderAxis
92101
{
93102
get { return sliderAxis; }
@@ -98,8 +107,14 @@ public SliderAxis CurrentSliderAxis
98107
}
99108
}
100109

110+
/// <summary>
111+
/// Previous value of slider axis, is used in order to detect change in current slider axis value
112+
/// </summary>
101113
private SliderAxis? previousSliderAxis = null;
102-
public SliderAxis PreviousSliderAxis
114+
/// <summary>
115+
/// Property accessor for previousSliderAxis that is used also to initiallize the property with the current value in case of null value.
116+
/// </summary>
117+
private SliderAxis PreviousSliderAxis
103118
{
104119
get
105120
{

0 commit comments

Comments
 (0)