Skip to content

Commit e684b5d

Browse files
author
Julia Schwarz
committed
Add newline as well as more clarifying comments to Slider field.
1 parent 9c137dc commit e684b5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ public SliderEventData(float o, float n, IMixedRealityPointer pointer, PinchSlid
3333

3434
/// <summary>
3535
/// The currently active pointer manipulating / hovering the slider,
36-
/// or null if no pointer is manipulating the slider
36+
/// or null if no pointer is manipulating the slider.
37+
/// Note: OnSliderUpdated is called with .Pointer == null
38+
/// OnStart, so always check if this field is null before using!
3739
/// </summary>
3840
public IMixedRealityPointer Pointer { get; set; }
3941
}
40-
}
42+
}

0 commit comments

Comments
 (0)