Skip to content

Commit 7ba8647

Browse files
committed
GoogleVR SDK for Unity v0.8.1
1 parent b826947 commit 7ba8647

9 files changed

+0
-39
lines changed

GoogleVR/Editor/GvrViewerEditor.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ public class GvrViewerEditor : Editor {
3434
"The screen resolution is multiplied by this value when creating the " +
3535
"RenderTexture for the stereo screen.");
3636

37-
GUIContent autoDriftCorrectionLabel = new GUIContent("Auto Drift Correction",
38-
"When enabled, drift in the gyro readings is estimated and removed.");
39-
4037
GUIContent neckModelScaleLabel = new GUIContent("Neck Model Scale",
4138
"The scale factor of the builtin neck model [0..1]. To disable, set to 0.");
4239

@@ -84,8 +81,6 @@ public override void OnInspectorGUI() {
8481
}
8582
gvrViewer.NeckModelScale =
8683
EditorGUILayout.Slider(neckModelScaleLabel, gvrViewer.NeckModelScale, 0, 1);
87-
gvrViewer.AutoDriftCorrection =
88-
EditorGUILayout.Toggle(autoDriftCorrectionLabel, gvrViewer.AutoDriftCorrection);
8984

9085
EditorGUILayout.Separator();
9186

GoogleVR/Prefabs/GvrMain.prefab

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ MonoBehaviour:
535535
enableSettingsButton: 1
536536
backButtonMode: 1
537537
neckModelScale: 1
538-
autoDriftCorrection: 1
539538
electronicDisplayStabilization: 0
540539
autoUntiltHead: 1
541540
UseUnityRemoteInput: 0

GoogleVR/Prefabs/GvrManager.prefab

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ MonoBehaviour:
181181
enableSettingsButton: 1
182182
backButtonMode: 1
183183
neckModelScale: 1
184-
autoDriftCorrection: 1
185184
electronicDisplayStabilization: 0
186185
autoUntiltHead: 1
187186
UseUnityRemoteInput: 0

GoogleVR/Scripts/GvrViewer.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -218,21 +218,6 @@ public float NeckModelScale {
218218
[SerializeField]
219219
private float neckModelScale = 0.0f;
220220

221-
/// When enabled, drift in the gyro readings is estimated and removed.
222-
public bool AutoDriftCorrection {
223-
get {
224-
return autoDriftCorrection;
225-
}
226-
set {
227-
if (value != autoDriftCorrection && device != null) {
228-
device.SetAutoDriftCorrectionEnabled(value);
229-
}
230-
autoDriftCorrection = value;
231-
}
232-
}
233-
[SerializeField]
234-
private bool autoDriftCorrection = true;
235-
236221
/// @cond
237222
public bool ElectronicDisplayStabilization {
238223
get {
@@ -460,7 +445,6 @@ private void InitDevice() {
460445
device.SetDistortionCorrectionEnabled(distortionCorrection == DistortionCorrectionMethod.Native
461446
&& NativeDistortionCorrectionSupported);
462447
device.SetNeckModelScale(neckModelScale);
463-
device.SetAutoDriftCorrectionEnabled(autoDriftCorrection);
464448
device.SetElectronicDisplayStabilizationEnabled(electronicDisplayStabilization);
465449

466450
device.SetVRModeEnabled(vrModeEnabled);

GoogleVR/Scripts/VRDevices/BaseVRDevice.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ protected BaseVRDevice() {
4848
public abstract void SetShowVrBackButtonOnlyInVR(bool only);
4949

5050
public abstract void SetNeckModelScale(float scale);
51-
public abstract void SetAutoDriftCorrectionEnabled(bool enabled);
5251
public abstract void SetElectronicDisplayStabilizationEnabled(bool enabled);
5352

5453
public virtual bool SupportsNativeDistortionCorrection(List<string> diagnostics) {

GoogleVR/Scripts/VRDevices/EditorDevice.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public override void SetAlignmentMarkerEnabled(bool enabled) {}
5151
public override void SetVRBackButtonEnabled(bool enabled) {}
5252
public override void SetShowVrBackButtonOnlyInVR(bool only) {}
5353
public override void SetNeckModelScale(float scale) {}
54-
public override void SetAutoDriftCorrectionEnabled(bool enabled) {}
5554
public override void SetElectronicDisplayStabilizationEnabled(bool enabled) {}
5655

5756
private Quaternion initialRotation = Quaternion.identity;

GoogleVR/Scripts/VRDevices/GvrDevice.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ public override void SetNeckModelScale(float scale) {
5353
SetNeckModelFactor(scale);
5454
}
5555

56-
public override void SetAutoDriftCorrectionEnabled(bool enabled) {
57-
EnableAutoDriftCorrection(enabled);
58-
}
59-
6056
public override void SetElectronicDisplayStabilizationEnabled(bool enabled) {
6157
EnableElectronicDisplayStabilization(enabled);
6258
}
@@ -209,9 +205,6 @@ protected virtual void ProcessEvents() {
209205
[DllImport(dllName)]
210206
private static extern void EnableDistortionCorrection(bool enable);
211207

212-
[DllImport(dllName)]
213-
private static extern void EnableAutoDriftCorrection(bool enable);
214-
215208
[DllImport(dllName)]
216209
private static extern void EnableElectronicDisplayStabilization(bool enable);
217210

GoogleVR/Scripts/VRDevices/iOSDevice.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,9 @@ public override void SetShowVrBackButtonOnlyInVR(bool only) {
5656
setShowVrBackButtonOnlyInVR(only);
5757
}
5858

59-
public override void SetAutoDriftCorrectionEnabled(bool enabled){
60-
// For iOS don't use Drift Correction.
61-
base.SetAutoDriftCorrectionEnabled(false);
62-
}
63-
6459
public override void Init() {
6560
isOpenGL = isOpenGLAPI();
6661
base.Init();
67-
// For iOS don't use Drift Correction.
68-
SetAutoDriftCorrectionEnabled(false);
6962
}
7063

7164
public override void ShowSettingsDialog() {

GoogleVRForUnity.unitypackage

9.23 MB
Binary file not shown.

0 commit comments

Comments
 (0)