Skip to content

Commit b78f0d3

Browse files
committed
Update deprecation messages
1 parent d21e3dc commit b78f0d3

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

org.mixedrealitytoolkit.core/Interactors/IHandedInteractor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ namespace MixedReality.Toolkit
99
/// <summary>
1010
/// An interface that all interactors with the concept of handedness implement.
1111
/// </summary>
12-
[Obsolete("Use " + nameof(IXRInteractor) + " instead.")]
12+
[Obsolete(nameof(IHandedInteractor) + " has been deprecated in version 4.0.0. Use " + nameof(IXRInteractor) + " instead.")]
1313
public interface IHandedInteractor : IXRInteractor
1414
{
1515
/// <summary>
1616
/// Returns the Handedness of this interactor.
1717
/// </summary>
18-
[Obsolete("Use " + nameof(handedness) + " instead.")]
18+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(handedness) + " instead.")]
1919
public Handedness Handedness { get; }
2020
}
2121
}

org.mixedrealitytoolkit.core/Interactors/IVariableSelectInteractor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace MixedReality.Toolkit
1010
/// An interface that all interactors which offer
1111
/// variable selection must implement.
1212
/// </summary>
13-
[Obsolete("Use " + nameof(IXRInteractionStrengthInteractor) + " instead.")]
13+
[Obsolete(nameof(IVariableSelectInteractor) + " has been deprecated in version 4.0.0. Use " + nameof(IXRInteractionStrengthInteractor) + " instead.")]
1414
public interface IVariableSelectInteractor : IXRSelectInteractor, IXRHoverInteractor
1515
{
1616
/// <summary>
@@ -21,7 +21,7 @@ public interface IVariableSelectInteractor : IXRSelectInteractor, IXRHoverIntera
2121
/// For gaze-pinch interactors, this is the pinch progress.
2222
/// For motion controllers, this is the analog trigger press amount.
2323
/// </remarks>
24-
[Obsolete("Use " + nameof(IXRInteractionStrengthInteractor.GetInteractionStrength) + " or " + nameof(IXRInteractionStrengthInteractor.largestInteractionStrength) + " instead.")]
24+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractionStrengthInteractor.GetInteractionStrength) + " or " + nameof(IXRInteractionStrengthInteractor.largestInteractionStrength) + " instead.")]
2525
float SelectProgress { get; }
2626
}
2727
}

org.mixedrealitytoolkit.input/Interactors/GazePinch/GazePinchInteractor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ private bool IsTracked
196196
#region IHandedInteractor
197197

198198
/// <inheritdoc />
199-
[Obsolete("Use " + nameof(handedness) + " instead.")]
199+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractor.handedness) + " instead.")]
200200
Handedness IHandedInteractor.Handedness => forceDeprecatedInput ? handController.HandNode.ToHandedness() : handedness.ToHandedness();
201201

202202
#endregion IHandedInteractor
203203

204204
#region IVariableSelectInteractor
205205

206206
/// <inheritdoc />
207-
[Obsolete("Use " + nameof(IXRInteractionStrengthInteractor.GetInteractionStrength) + " or " + nameof(IXRInteractionStrengthInteractor.largestInteractionStrength) + " instead.")]
207+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractionStrengthInteractor.GetInteractionStrength) + " or " + nameof(IXRInteractionStrengthInteractor.largestInteractionStrength) + " instead.")]
208208
float IVariableSelectInteractor.SelectProgress
209209
{
210210
get

org.mixedrealitytoolkit.input/Interactors/HandJointInteractor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public GameObject ModeManagedRoot
6161
#region IHandedInteractor
6262

6363
/// <inheritdoc />
64-
[Obsolete("Use " + nameof(handedness) + " instead.")]
64+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractor.handedness) + " instead.")]
6565
Handedness IHandedInteractor.Handedness
6666
{
6767
get

org.mixedrealitytoolkit.input/Interactors/Poke/PokeInteractor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ xrController is ArticulatedHandController handController &&
106106
#region IHandedInteractor
107107

108108
/// <inheritdoc />
109-
[Obsolete("Use " + nameof(handedness) + " instead.")]
109+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractor.handedness) + " instead.")]
110110
Handedness IHandedInteractor.Handedness
111111
{
112112
get

org.mixedrealitytoolkit.input/Interactors/Ray/MRTKRayInteractor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private bool IsTracked
142142
#region IHandedInteractor
143143

144144
/// <inheritdoc />
145-
[Obsolete("Use " + nameof(handedness) + " instead.")]
145+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractor.handedness) + " instead.")]
146146
Handedness IHandedInteractor.Handedness => forceDeprecatedInput &&
147147
xrController is ArticulatedHandController handController
148148
? handController.HandNode.ToHandedness()
@@ -153,7 +153,7 @@ xrController is ArticulatedHandController handController
153153
#region IVariableSelectInteractor
154154

155155
/// <inheritdoc />
156-
[Obsolete("Use " + nameof(IXRInteractionStrengthInteractor.GetInteractionStrength) + " or " + nameof(IXRInteractionStrengthInteractor.largestInteractionStrength) + " instead.")]
156+
[Obsolete("This property has been deprecated in version 4.0.0. Use " + nameof(IXRInteractionStrengthInteractor.GetInteractionStrength) + " or " + nameof(IXRInteractionStrengthInteractor.largestInteractionStrength) + " instead.")]
157157
float IVariableSelectInteractor.SelectProgress
158158
{
159159
get

0 commit comments

Comments
 (0)