googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.09k forks source link

comment typos #1014

Open shiena opened 5 years ago

shiena commented 5 years ago
diff --git a/Assets/GoogleVR/Scripts/Cardboard/GvrReticlePointer.cs b/Assets/GoogleVR/Scripts/Cardboard/GvrReticlePointer.cs
index 83dc8be..f8509b2 100644
--- a/Assets/GoogleVR/Scripts/Cardboard/GvrReticlePointer.cs
+++ b/Assets/GoogleVR/Scripts/Cardboard/GvrReticlePointer.cs
@@ -24,7 +24,7 @@ using UnityEngine.EventSystems;
 [HelpURL("https://developers.google.com/vr/unity/reference/class/GvrReticlePointer")]
 public class GvrReticlePointer : GvrBasePointer
 {
-    /// The constants below are expsed for testing. Minimum inner angle of the reticle (in degrees).
+    /// The constants below are exposed for testing. Minimum inner angle of the reticle (in degrees).
     public const float RETICLE_MIN_INNER_ANGLE = 0.0f;

     /// Minimum outer angle of the reticle (in degrees).
diff --git a/Assets/GoogleVR/Scripts/Controller/GvrControllerInput.cs b/Assets/GoogleVR/Scripts/Controller/GvrControllerInput.cs
index e92d6d7..e582d70 100644
--- a/Assets/GoogleVR/Scripts/Controller/GvrControllerInput.cs
+++ b/Assets/GoogleVR/Scripts/Controller/GvrControllerInput.cs
@@ -225,7 +225,7 @@ public class GvrControllerInput : MonoBehaviour
         }
     }

-    /// <summary>Controller Emulatuor connection modes.</summary>
+    /// <summary>Controller Emulator connection modes.</summary>
     public enum EmulatorConnectionMode
     {
         OFF,
diff --git a/Assets/GoogleVR/Scripts/Controller/GvrRecenterOnlyController.cs b/Assets/GoogleVR/Scripts/Controller/GvrRecenterOnlyController.cs
index a370b50..b3528f4 100644
--- a/Assets/GoogleVR/Scripts/Controller/GvrRecenterOnlyController.cs
+++ b/Assets/GoogleVR/Scripts/Controller/GvrRecenterOnlyController.cs
@@ -55,7 +55,7 @@ public class GvrRecenterOnlyController : MonoBehaviour
             return;
         }

-// Daydream is loaded only on deivce, not in editor.
+// Daydream is loaded only on device, not in editor.
 #if UNITY_ANDROID && !UNITY_EDITOR
         if (XRSettings.loadedDeviceName != GvrSettings.VR_SDK_DAYDREAM)
         {
diff --git a/Assets/GoogleVR/Scripts/Controller/Internal/ControllerProviderFactory.cs b/Assets/GoogleVR/Scripts/Controller/Internal/ControllerProviderFactory.cs
index a0998c4..7b71227 100644
--- a/Assets/GoogleVR/Scripts/Controller/Internal/ControllerProviderFactory.cs
+++ b/Assets/GoogleVR/Scripts/Controller/Internal/ControllerProviderFactory.cs
@@ -28,7 +28,7 @@ namespace Gvr.Internal
         /// Provides a concrete implementation of IControllerProvider appropriate for the current
         /// platform. This method never returns null. In the worst case, it might return a dummy
         /// provider if the platform is not supported. For demo purposes the emulator controller
-        /// is returned in the editor and in Standalone buids, for use inside the desktop player.
+        /// is returned in the editor and in Standalone builds, for use inside the desktop player.
         static internal IControllerProvider CreateControllerProvider(GvrControllerInput owner)
         {
 // Use emualtor in editor, and in Standalone builds (for demo purposes).
diff --git a/Assets/GoogleVR/Scripts/Controller/Tooltips/GvrControllerTooltipsSimple.cs b/Assets/GoogleVR/Scripts/Controller/Tooltips/GvrControllerTooltipsSimple.cs
index c707f6b..cb1e9b1 100644
--- a/Assets/GoogleVR/Scripts/Controller/Tooltips/GvrControllerTooltipsSimple.cs
+++ b/Assets/GoogleVR/Scripts/Controller/Tooltips/GvrControllerTooltipsSimple.cs
@@ -79,7 +79,7 @@ public class GvrControllerTooltipsSimple : MonoBehaviour, IGvrArmModelReceiver
         OnVisualUpdate();
     }

-    /// <summary>Updates the tooltip visualation based on the arm model.</summary>
+    /// <summary>Updates the tooltip visualization based on the arm model.</summary>
     protected void OnVisualUpdate()
     {
         float alpha = ArmModel != null ? ArmModel.TooltipAlphaValue : 1.0f;
diff --git a/Assets/GoogleVR/Scripts/EventSystem/GvrBasePointer.cs b/Assets/GoogleVR/Scripts/EventSystem/GvrBasePointer.cs
index 7cd9587..b56c1e7 100644
--- a/Assets/GoogleVR/Scripts/EventSystem/GvrBasePointer.cs
+++ b/Assets/GoogleVR/Scripts/EventSystem/GvrBasePointer.cs
@@ -126,7 +126,7 @@ public abstract class GvrBasePointer : MonoBehaviour, IGvrControllerInputDeviceR
     public RaycastMode raycastMode = RaycastMode.Hybrid;

     /// Determines the eventCamera for _GvrPointerPhysicsRaycaster_ and _GvrPointerGraphicRaycaster_.
-    /// Additionaly, this is used to control what camera to use when calculating the Camera ray for
+    /// Additionally, this is used to control what camera to use when calculating the Camera ray for
     /// the Hybrid and Camera raycast modes.
     [Tooltip("Optional: Use a camera other than Camera.main.")]
     public Camera overridePointerCamera;
diff --git a/Assets/GoogleVR/Scripts/EventSystem/GvrPointerScrollInput.cs b/Assets/GoogleVR/Scripts/EventSystem/GvrPointerScrollInput.cs
index 22b70a8..7b5b72c 100644
--- a/Assets/GoogleVR/Scripts/EventSystem/GvrPointerScrollInput.cs
+++ b/Assets/GoogleVR/Scripts/EventSystem/GvrPointerScrollInput.cs
@@ -24,7 +24,7 @@ using System.Linq;
 using Gvr.Internal;

 /// This class is used by _GvrPointerInputModule_ to route scroll events through Unity's Event System.
-/// It maintains indepedent velocities for each instance of _IScrollHandler_ that is currently being scrolled.
+/// It maintains independent velocities for each instance of _IScrollHandler_ that is currently being scrolled.
 /// Inertia can optionally be toggled off.
 [System.Serializable]
 public class GvrPointerScrollInput
diff --git a/Assets/GoogleVR/Scripts/EventSystem/IGvrScrollSettings.cs b/Assets/GoogleVR/Scripts/EventSystem/IGvrScrollSettings.cs
index 04d13fb..934b4a8 100644
--- a/Assets/GoogleVR/Scripts/EventSystem/IGvrScrollSettings.cs
+++ b/Assets/GoogleVR/Scripts/EventSystem/IGvrScrollSettings.cs
@@ -22,7 +22,7 @@ using System.Collections;
 /// Interface to implement to override the global scroll settings
 /// in _GvrPointerScrollInput_ for an object.
 ///
-/// Must be implmented by a component. It will override the scroll settings for the
+/// Must be implemented by a component. It will override the scroll settings for the
 /// GameObject that the component is attached to.
 ///
 /// Can use _GvrScrollSettings_ To override scroll settings for any existing UI type,
diff --git a/Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModule.cs b/Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModule.cs
index ad277f2..952003f 100644
--- a/Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModule.cs
+++ b/Assets/GoogleVR/Scripts/EventSystem/InputModule/GvrPointerInputModule.cs
@@ -21,7 +21,7 @@ using UnityEngine.EventSystems;

 using Gvr.Internal;

-/// This script provides an implemention of Unity's `BaseInputModule` class, so
+/// This script provides an implementation of Unity's `BaseInputModule` class, so
 /// that Canvas-based (_uGUI_) UI elements and 3D scene objects can be
 /// interacted with in a Gvr Application.
 ///
diff --git a/Assets/GoogleVR/Scripts/GvrCardboardHelpers.cs b/Assets/GoogleVR/Scripts/GvrCardboardHelpers.cs
index a0454b5..1f6ad9c 100644
--- a/Assets/GoogleVR/Scripts/GvrCardboardHelpers.cs
+++ b/Assets/GoogleVR/Scripts/GvrCardboardHelpers.cs
@@ -27,7 +27,7 @@ public class GvrCardboardHelpers
     /// Manual recenter for Cardboard apps. After recentering the camera's orientation will be given
     /// in the new recentered coordinate system.
     /// Do not use for Daydream apps as controller based recentering is handled automatically by
-    /// Google VR Services, see `GvrControllerInput.Rencentered` for details.
+    /// Google VR Services, see `GvrControllerInput.Recentered` for details.
     public static void Recenter()
     {
 #if UNITY_EDITOR
diff --git a/Assets/GoogleVR/Scripts/GvrEditorEmulator.cs b/Assets/GoogleVR/Scripts/GvrEditorEmulator.cs
index 35e102e..513b204 100644
--- a/Assets/GoogleVR/Scripts/GvrEditorEmulator.cs
+++ b/Assets/GoogleVR/Scripts/GvrEditorEmulator.cs
@@ -34,7 +34,7 @@ public class GvrEditorEmulator : MonoBehaviour
     // The rendered camera pose will still be correct because the VR.InputTracking pose
     // gets applied after LateUpdate has occured. However, any functionality that
     // queries the camera pose during Update or LateUpdate after GvrEditorEmulator has been
-    // updated will get the wrong value applied by GvrEditorEmulator intsead.
+    // updated will get the wrong value applied by GvrEditorEmulator instead.
 #if UNITY_EDITOR
     private static GvrEditorEmulator instance;
     private static bool instance_searched_for = false;
diff --git a/Assets/GoogleVR/Scripts/Headset/Internal/HeadsetProviderFactory.cs b/Assets/GoogleVR/Scripts/Headset/Internal/HeadsetProviderFactory.cs
index 4e4c5f8..d9e1a46 100644
--- a/Assets/GoogleVR/Scripts/Headset/Internal/HeadsetProviderFactory.cs
+++ b/Assets/GoogleVR/Scripts/Headset/Internal/HeadsetProviderFactory.cs
@@ -32,7 +32,7 @@ namespace Gvr.Internal
         /// desktop player.
         static internal IHeadsetProvider CreateProvider()
         {
-// Use emualtor in editor, GVR SDK support on Android standalone headsets, and a
+// Use emulator in editor, GVR SDK support on Android standalone headsets, and a
 // dummy implementation otherwise..
 #if UNITY_EDITOR
             return new EditorHeadsetProvider();
diff --git a/Assets/GoogleVR/Scripts/Utilities/GvrMathHelpers.cs b/Assets/GoogleVR/Scripts/Utilities/GvrMathHelpers.cs
index 9c56181..5353814 100644
--- a/Assets/GoogleVR/Scripts/Utilities/GvrMathHelpers.cs
+++ b/Assets/GoogleVR/Scripts/Utilities/GvrMathHelpers.cs
@@ -46,7 +46,7 @@ public static class GvrMathHelpers
         return intersectionPosition;
     }

-    /// <summary>Normalizes the coodinates from cartesian to spherical system.</summary>
+    /// <summary>Normalizes the coordinates from cartesian to spherical system.</summary>
     /// <param name="cartCoords">The coordinates to normalize.</param>
     /// <returns>The spherical coordinates.</returns>
     public static Vector2 NormalizedCartesianToSpherical(Vector3 cartCoords)
rusmaxham commented 5 years ago

Thank you for reporting this.