Skip to content

Commit 59495bb

Browse files
authored
Merge pull request #7976 from keveleigh/spell-check
Spell check pass on code comments and docs for 2.4
2 parents 56247f8 + 996fde5 commit 59495bb

File tree

33 files changed

+50
-50
lines changed

33 files changed

+50
-50
lines changed

Assets/MRTK/Core/Extensions/UnityObjectExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void DontDestroyOnLoad(this Object target)
2424
}
2525

2626
/// <summary>
27-
/// Destroys a Unity object appropriately depending if running in in edit or play mode.
27+
/// Destroys a Unity object appropriately depending if running in edit or play mode.
2828
/// </summary>
2929
/// <param name="obj">Unity object to destroy</param>
3030
/// <param name="t">Time in seconds at which to destroy the object, if applicable.</param>

Assets/MRTK/Core/Providers/Hands/ArticulatedHandDefinition.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public float EnterPinchDistance
5252
}
5353
else
5454
{
55-
Debug.LogError("EnterPinchDistance must be be between 0.015 and 0.1, please change Enter Pinch Distance in the Leap Motion Device Manager Profile");
55+
Debug.LogError("EnterPinchDistance must be between 0.015 and 0.1, please change Enter Pinch Distance in the Leap Motion Device Manager Profile");
5656
}
5757
}
5858
}
@@ -75,7 +75,7 @@ public float ExitPinchDistance
7575
}
7676
else
7777
{
78-
Debug.LogError("ExitPinchDistance must be be between 0.015 and 0.1, please change Exit Pinch Distance in the Leap Motion Device Manager Profile");
78+
Debug.LogError("ExitPinchDistance must be between 0.015 and 0.1, please change Exit Pinch Distance in the Leap Motion Device Manager Profile");
7979
}
8080
}
8181
}

Assets/MRTK/Core/Utilities/BuildAndDeploy/UwpBuildDeployPreferences.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static string BuildConfig
5656
}
5757

5858
/// <summary>
59-
/// Gets the build configuraition type as a WSABuildType enum
59+
/// Gets the build configuration type as a WSABuildType enum
6060
/// </summary>
6161
public static WSABuildType BuildConfigType
6262
{

Assets/MRTK/Core/Utilities/Editor/SpatializerUtilities.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static bool CheckSettings()
5858
return false;
5959
}
6060

61-
// A spatializer is correctly confiugured.
61+
// A spatializer is correctly configured.
6262
return true;
6363
}
6464

Assets/MRTK/Core/Utilities/Gltf/Serialization/GltfUtility.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private static Dictionary<string, int> StringIntDictionaryFromJson(string json)
415415
/// <summary>
416416
/// Takes a json object string with key value pairs, and returns a json string
417417
/// in the format of `{"items": [{"key": $key_name, "value": $value}]}`.
418-
/// This format can be handled by JsonUtility and support an aribtrary number
418+
/// This format can be handled by JsonUtility and support an arbitrary number
419419
/// of key/value pairs
420420
/// </summary>
421421
/// <param name="json">JSON string in the format `{"key": $value}`</param>

Assets/MRTK/Core/Utilities/Lines/DataProviders/BaseMixedRealityLineDataProvider.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ public DistortionMode DistortionMode
214214
}
215215

216216
[SerializeField]
217-
[Tooltip("Curve that defines distoration strength over distance, only used when DistortionMode = NormalizedLength")]
217+
[Tooltip("Curve that defines distortion strength over distance, only used when DistortionMode = NormalizedLength")]
218218
private AnimationCurve distortionStrength = AnimationCurve.Linear(0f, 1f, 1f, 1f);
219219

220220
/// <summary>
221-
/// Curve that defines distoration strength over distance, only used when DistortionMode = NormalizedLength
221+
/// Curve that defines distortion strength over distance, only used when DistortionMode = NormalizedLength
222222
/// </summary>
223223
public AnimationCurve DistortionStrength
224224
{
@@ -227,12 +227,12 @@ public AnimationCurve DistortionStrength
227227
}
228228

229229
[Range(0f, 1f)]
230-
[Tooltip("Float value that defines distoration strength uniformly over distance, only used when DistortionMode = Uniform")]
230+
[Tooltip("Float value that defines distortion strength uniformly over distance, only used when DistortionMode = Uniform")]
231231
[SerializeField]
232232
private float uniformDistortionStrength = 1f;
233233

234234
/// <summary>
235-
/// Float value that defines distoration strength uniformly over distance, only used when DistortionMode = Uniform
235+
/// Float value that defines distortion strength uniformly over distance, only used when DistortionMode = Uniform
236236
/// </summary>
237237
public float UniformDistortionStrength
238238
{

Assets/MRTK/Examples/Demos/UX/Collections/Scripts/GridObjectLayoutControl.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void PreviousLayout()
5656
/// Use this to run mock tests in grid object collection tests
5757
/// and print the resulting positions of child objects to a file.
5858
/// Used to get expected values for GridObjectCollectionTests.
59-
/// When you run the comand, look in the Debug log for where the file is output,
59+
/// When you run the command, look in the Debug log for where the file is output,
6060
/// it will be of form "printgrid-yyMMdd-HHmmss.txt"
6161
/// </summary>
6262
public void RunTest()

Assets/MRTK/Extensions/HandPhysicsService/HandPhysicsService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private static bool TryCreateJointKinematicBody(GameObject rigidBodyPrefab, int
239239

240240
if (currentGameObject.GetComponent<Collider>() == null)
241241
{
242-
Debug.LogError("The HandPhysicsService assumes the FingerTipKinematicBodyPrefab has a Collder component.");
242+
Debug.LogError("The HandPhysicsService assumes the FingerTipKinematicBodyPrefab has a Collider component.");
243243
UnityEngine.Object.Destroy(currentGameObject);
244244
return false;
245245
}

Assets/MRTK/Providers/LeapMotion/LeapMotionArticulatedHand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public LeapMotionArticulatedHand(TrackingState trackingState, Handedness control
3939

4040
internal ArticulatedHandDefinition handDefinition;
4141

42-
// Set the interations for each hand to the Default interactions of the hand definition
42+
// Set the interactions for each hand to the Default interactions of the hand definition
4343
public override MixedRealityInteractionMapping[] DefaultInteractions => handDefinition?.DefaultInteractions;
4444

4545
private static readonly ProfilerMarker UpdateStatePerfMarker = new ProfilerMarker("[MRTK] LeapMotionArticulatedHand.UpdateState");

Assets/MRTK/Providers/LeapMotion/LeapMotionDeviceManagerProfile.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public class LeapMotionDeviceManagerProfile : BaseMixedRealityProfile
2626
public LeapControllerOrientation LeapControllerOrientation => leapControllerOrientation;
2727

2828
[SerializeField]
29-
[Tooltip("Adds an offset to the game object with LeapServiceProvider attached. This offset is only applied if the leapControllerOrientation" +
29+
[Tooltip("Adds an offset to the game object with LeapServiceProvider attached. This offset is only applied if the leapControllerOrientation " +
3030
"is LeapControllerOrientation.Desk and is necessary for the hand to appear in front of the main camera. If the leap controller is on the " +
31-
"desk, the LeapServiceProvider is added to the scene instead of the LeapXRServiceProvider. The anchor point for the hands is the position of the" +
31+
"desk, the LeapServiceProvider is added to the scene instead of the LeapXRServiceProvider. The anchor point for the hands is the position of the " +
3232
"game object with the LeapServiceProvider attached.")]
3333
private Vector3 leapControllerOffset = new Vector3(0, -0.2f, 0.2f);
3434

@@ -61,12 +61,12 @@ public float EnterPinchDistance
6161

6262
[SerializeField]
6363
[Tooltip("The minimum distance between the index finger tip and the thumb tip required to exit the pinch/air tap gesture to deselect. The distance between the thumb and " +
64-
"the index tip must be greater than than the ExitPinchDistance to raise the OnInputUp event")]
64+
"the index tip must be greater than the ExitPinchDistance to raise the OnInputUp event")]
6565
private float exitPinchDistance = 0.05f;
6666

6767
/// <summary>
6868
/// The minimum distance between the index finger tip and the thumb tip required to exit the pinch/air tap gesture to deselect. The distance between the thumb and
69-
/// the index tip must be greater than than the ExitPinchDistance to raise the OnInputUp event
69+
/// the index tip must be greater than the ExitPinchDistance to raise the OnInputUp event
7070
/// </summary>
7171
public float ExitPinchDistance
7272
{

Assets/MRTK/SDK/Features/UX/Scripts/Buttons/ButtonIconSet.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public override void OnInspectorGUI()
714714
}
715715
else
716716
{
717-
EditorGUILayout.HelpBox("No icons added yet. Click avaialable icons to add.", MessageType.Info);
717+
EditorGUILayout.HelpBox("No icons added yet. Click available icons to add.", MessageType.Info);
718718
}
719719

720720
if (removeIndex >= 0)

Assets/MRTK/SDK/Features/UX/Scripts/Collections/BaseObjectCollection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected void PruneEmptyNodes()
135135
/// <summary>
136136
/// Check if a node exists in the NodeList.
137137
/// </summary>
138-
/// <param name="node">The Transfrom belonging to the <see cref="ObjectCollectionNode"/></param>
138+
/// <param name="node">The Transform belonging to the <see cref="ObjectCollectionNode"/></param>
139139
/// <returns>true when <paramref name="node"/> belongs to an element of the list.</returns>
140140
protected bool ContainsNode(Transform node)
141141
{

Assets/MRTK/SDK/Features/UX/Scripts/Cursors/FingerCursor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private void TranslateFromTipToPad(Transform target, Vector3 fingerPosition, Vec
228228
Vector3 tipPosition = fingerPosition + tipNormal * skinSurfaceOffset;
229229
Vector3 tipOffset = tipPosition - fingerPosition;
230230

231-
// Check how perpindicular the finger normal is to the surface, so that the cursor will
231+
// Check how perpendicular the finger normal is to the surface, so that the cursor will
232232
// not translate to the finger pad if the user is poking with a horizontal finger
233233
float fingerSurfaceDot = Vector3.Dot(tipNormal, -surfaceNormal);
234234

Assets/MRTK/SDK/Features/UX/Scripts/Pointers/ShellHandRayPointer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Microsoft.MixedReality.Toolkit.Input
1010
{
1111
/// <summary>
12-
/// Implementation for default hand ray pointers shipped with MRTK. Primariliy used with hands and motion controllers
12+
/// Implementation for default hand ray pointers shipped with MRTK. Primarily used with hands and motion controllers
1313
/// </summary>
1414
[AddComponentMenu("Scripts/MRTK/SDK/ShellHandRayPointer")]
1515
public class ShellHandRayPointer : LinePointer

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public SliderAxis CurrentSliderAxis
140140
/// </summary>
141141
private SliderAxis? previousSliderAxis = null;
142142
/// <summary>
143-
/// Property accessor for previousSliderAxis that is used also to initiallize the property with the current value in case of null value.
143+
/// Property accessor for previousSliderAxis that is used also to initialize the property with the current value in case of null value.
144144
/// </summary>
145145
private SliderAxis PreviousSliderAxis
146146
{

Assets/MRTK/SDK/Features/UX/Scripts/Utilities/PointerBehaviorControls.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void SetFingerOnly()
157157

158158
/// <summary>
159159
/// Sets pointer behavior to mimic HoloLens 1 interactions, useful
160-
/// for using Hololens 1 interactions on HoloLens 2.
160+
/// for using HoloLens 1 interactions on HoloLens 2.
161161
/// PokePointer will be off
162162
/// GrabPointer will be off
163163
/// HandRayPointer will be off

Assets/MRTK/SDK/Features/UX/Scripts/VisualThemes/Core/ThemeProperty.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.MixedReality.Toolkit.UI
1212
public class ThemeProperty
1313
{
1414
/// <summary>
15-
/// Dispalyed as Label in Inspector
15+
/// Displayed as Label in Inspector
1616
/// </summary>
1717
public string Name;
1818

Assets/MRTK/SDK/Features/Utilities/Migration/Tools/MigrationTool.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private bool SetMigrationHandlerInstance(Type type)
318318
}
319319
catch (Exception)
320320
{
321-
Debug.LogError("Selected MigrationHandler implementation could not be instanciated.");
321+
Debug.LogError("Selected MigrationHandler implementation could not be instantiated.");
322322
return false;
323323
}
324324
return true;

Assets/MRTK/SDK/Features/Utilities/Solvers/HandConstraintPalmUp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,14 @@ public void StartWorldLockReattachCheckCoroutine()
281281
}
282282

283283
/// <summary>
284-
/// This function attenpts to generate a hand plane based on the wrist, index knuckle and pinky knuckle joints present in the hand.
284+
/// This function attempts to generate a hand plane based on the wrist, index knuckle and pinky knuckle joints present in the hand.
285285
/// On a success, it then calls GenerateActivationPoint to try to generate a hand-based activation point that the user
286286
/// needs to gaze at to activate the constrained object.
287287
/// On a failure, it assigns them to be default values and then returns false
288288
/// </summary>
289289
/// <param name="jointedHand">Hand reference to the user's hand that is used to generate the hand plane and activation point</param>
290290
/// <param name="handPlane">Out Plane that represents the hand and is raycasted against to determine whether the users gaze is close to the activation point or not</param>
291-
/// <param name="activationPoint">Out Vector3 that represents the point on the hand-based plane to determine whther the menu activates or not</param>
291+
/// <param name="activationPoint">Out Vector3 that represents the point on the hand-based plane to determine whether the menu activates or not</param>
292292
/// <returns>True if the function can properly generate an activation point using the hand-based plane</returns>
293293
private bool TryGenerateHandPlaneAndActivationPoint(IMixedRealityHand jointedHand, out Plane handPlane, out Vector3 activationPoint)
294294
{

Assets/MRTK/SDK/Features/Utilities/Solvers/SolverHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ protected virtual void AttachToNewTrackedObject()
390390

391391
if (controllerRay == null)
392392
{
393-
// If no pointer found, try again on the the opposite hand
393+
// If no pointer found, try again on the opposite hand
394394
currentTrackedHandedness = currentTrackedHandedness.GetOppositeHandedness();
395395
controllerRay = PointerUtils.GetPointer<LinePointer>(currentTrackedHandedness);
396396
}

Assets/MRTK/Services/InputSimulation/Editor/InputSimulationWindow.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private void OnGUI()
134134
EditorGUILayout.Space();
135135

136136
// XXX Reloading the scene is currently not supported,
137-
// due to the life cycle of the MRTK "instance" object (see see #4530).
137+
// due to the life cycle of the MRTK "instance" object (see #4530).
138138
// Enable the button below once scene reloading is supported!
139139
#if false
140140
using (new GUIEnabledWrapper(Application.isPlaying))

Assets/MRTK/Services/InputSystem/GazeProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class GazeProvider :
2727
private const float MovementThreshold = 0.01f;
2828

2929
/// <summary>
30-
/// Used on Gaze Pointer initialization. To make the object lock/not lock when focus locked durign runtime, use the IsTargetPositionLockedOnFocusLock
30+
/// Used on Gaze Pointer initialization. To make the object lock/not lock when focus locked during runtime, use the IsTargetPositionLockedOnFocusLock
3131
/// attribute of <see cref="GazePointer.IsTargetPositionLockedOnFocusLock"/>
3232
/// </summary>
3333
[SerializeField]

Assets/MRTK/Services/SceneSystem/MixedRealitySceneSystem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ private void InvokeUnloadedActions(List<string> sceneNames, SceneType sceneType)
940940
break;
941941

942942
default:
943-
// Don't announce other types of scenes invidually
943+
// Don't announce other types of scenes individually
944944
break;
945945
}
946946
}

Assets/MRTK/Services/SceneSystem/MixedRealitySceneSystemEditorOperations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ private void EditorUpdateManagerScene()
470470

471471
if (EditorSceneUtils.LoadScene(profile.ManagerScene, true, out Scene scene))
472472
{
473-
// If we're managing scene heirarchy, move this to the front
473+
// If we're managing scene hierarchy, move this to the front
474474
if (profile.EditorEnforceSceneOrder)
475475
{
476476
Scene currentFirstScene = EditorSceneManager.GetSceneAt(0);

Assets/MRTK/Tests/EditModeTests/BoundarySystem/InscribedRectangleTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void TestSimpleRectangle()
8686
public void TestDegenerateSailboat()
8787
{
8888
// A set of edges that represents the fancy art above. Note that in this test case
89-
// the width/height is a bit lengtened to really ensure that the top rectangle is
89+
// the width/height is a bit lengthened to really ensure that the top rectangle is
9090
// much bigger.
9191
Edge[] edges = new Edge[]
9292
{
@@ -112,7 +112,7 @@ public void TestDegenerateSailboat()
112112
}
113113

114114
/// <summary>
115-
/// Asserts that the expected and actual values are within 'tolernace' percent.
115+
/// Asserts that the expected and actual values are within 'tolerance' percent.
116116
/// </summary>
117117
/// <remarks>
118118
/// Assumes that expected isn't zero (none of our test cases should lead to an empty sized

Assets/MRTK/Tests/PlayModeTests/BaseEventSystemTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public IEnumerator TestNestedNonRelatedListenerInvocation()
145145

146146
yield return null;
147147

148-
// Emits a single event and validates the the pointer click and diagnostic handler are both called.
148+
// Emits a single event and validates that the pointer click and diagnostic handler are both called.
149149
inputSystem.RaisePointerClicked(inputSystem.GazeProvider.GazePointer, MixedRealityInputAction.None, 1);
150150
Assert.AreEqual(1, inputListener.pointerClickedCount);
151151
Assert.AreEqual(1, diagnosticsListener.eventCount);

Assets/MRTK/Tests/PlayModeTests/BoundingBoxTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public IEnumerator BBoxHandlerUI()
135135

136136
var inputSimulationService = PlayModeTestUtilities.GetInputSimulationService();
137137

138-
// Definining the edge and corner handlers that will be used
138+
// Defining the edge and corner handlers that will be used
139139
Debug.Log(bbox.transform.Find("rigRoot/midpoint_0").GetChild(0));
140140
var originalCornerHandlerScale = bbox.transform.Find("rigRoot/corner_0/visualsScale/visuals").transform.localScale;
141141
var cornerHandlerPosition = bbox.transform.Find("rigRoot/corner_0").transform.position;

Assets/MRTK/Tests/PlayModeTests/Experimental/BoundsControlTests.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public IEnumerator RotateViaNearInteraction()
254254
}
255255

256256
/// <summary>
257-
/// Test bounds control rotation via hololens 1 interaction / GGV
257+
/// Test bounds control rotation via HoloLens 1 interaction / GGV
258258
/// Verifies gameobject has rotation in one axis only applied and no other transform changes happen during interaction
259259
/// </summary>
260260
[UnityTest]
@@ -538,7 +538,7 @@ public IEnumerator ProximityOnScaleHandles()
538538
yield return hand.MoveTo(frontRightCornerPos);
539539
yield return null;
540540

541-
// we're in poximity scaling range - check if proximity scaling wasn't applied
541+
// we're in proximity scaling range - check if proximity scaling wasn't applied
542542
Assert.AreEqual(proximityScaledVisual.localScale, defaultHandleSize, "Handle was scaled even though proximity effect wasn't active");
543543

544544
//// reset hand
@@ -819,7 +819,7 @@ public IEnumerator HandleVisibilityTest()
819819
Assert.IsTrue(rotationHandleAxisY.gameObject.activeSelf, "rotation handle y not active");
820820
Assert.IsFalse(rotationHandleAxisZ.gameObject.activeSelf, "rotation handle z not hidden");
821821

822-
// make sure handles are disabled and enabled when bounds control is deactived / activated
822+
// make sure handles are disabled and enabled when bounds control is deactivated / activated
823823
boundsControl.Active = false;
824824
Assert.IsNotNull(rigRoot, "rigRoot was destroyed on disabling bounds control");
825825
Assert.IsFalse(scaleHandle.gameObject.activeSelf, "scale handle not disabled");
@@ -1211,7 +1211,7 @@ public IEnumerator RotationHandleFlattenTest()
12111211

12121212
/// <summary>
12131213
/// Test for verifying changing the handle prefabs during runtime
1214-
/// and making sure the the entire rig won't be recreated
1214+
/// and making sure the entire rig won't be recreated
12151215
/// </summary>
12161216
[UnityTest]
12171217
public IEnumerator RotationHandlePrefabTest()
@@ -1258,7 +1258,7 @@ public IEnumerator RotationHandlePrefabTest()
12581258

12591259
/// <summary>
12601260
/// Test for verifying changing the handle prefabs during runtime
1261-
/// in regular and flatten mode and making sure the the entire rig won't be recreated
1261+
/// in regular and flatten mode and making sure the entire rig won't be recreated
12621262
/// </summary>
12631263
[UnityTest]
12641264
public IEnumerator ScaleHandlePrefabTest()

0 commit comments

Comments
 (0)