Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.

GVR SDK for Unity v0.5.1

Compare
Choose a tag to compare
@rusmaxham rusmaxham released this 26 Apr 20:05
· 52 commits to master since this release

Upgrade Instructions

  • Due to extensive changes in the plugin contents, it is recommended to delete the Cardboard directory and (if you have no other Android plugins) the Plugins/Android directory before importing the v0.5.1 SDK.

Fixes

  • Fixed a deprecated code warning in Unity 5.1.1 projects, relating to Graphics APIs.
  • Fixed a null reference error when changing the simulated viewer or phone in the Cardboard inspector panel.
  • For iOS apps, the screen idle timer was not disabled, so the screen could turn off while the phone is in a Cardboard viewer. Fixed.
  • VR Mode was being left enabled when loading a scene that had no Cardboard script, which affected rendering and input handling in the new scene. All VR Mode state is reset on scene load now.
  • An incorrect Input.touchCount was returned due to Cardboard hiding the first screen tap (turning it into a trigger event). Fixed.
  • A crash on certain phone models, in a native constructor called PlatformInfo has been fixed.

Additions

  • GazeInputModule can be used with a mouse, screen tap, or other inputs as well as with the Cardboard trigger.

Deletions

  • Removed Simulate Distortion Correction flag in the Editor.
  • The SDK no longer forces Android screen brightness to maximum, which was introduced in v0.5.
  • The android.permission.INTERNET tag has been removed from AndroidManifest.xml.

Changes

  • The Demo scenes have been split off into a separate unitypackage.
  • The gyro drift correction setting is not used on iOS, as it appears not to be needed.

Known Issues

  • (Fixed in v0.5.2) The settings gear button icon lives in two places: Cardboard/Resources/CardboardSettingsButton.png.bytes for Android, and Plugins/iOS/resources.bundle/gearButton.png for iOS.
  • The screen timeout is disabled when the Cardboard script initializes, regardless of whether the app is in VR Mode or not. Use Screen.screenTimeout to control this.
  • (Fixed in v0.5.2) A minor bug in CardboardProfile.cs uses halfWidth instead of halfHeight on a line computing a vertical offset. This has no effect on the phone but may be slightly visible in the editor.
  • (Removed in v0.6) The new-user onboarding wizard launches not at app startup, but in the first loaded scene that has a Cardboard component in it. To ensure it happens at startup if the first scene is not VR, add a Cardboard component to the scene and set its VRModeEnabled property to false.
  • If a Cardboard component is carried over into a new scene (via DontDestroyOnLoad), but the new scene already has a Cardboard component, then the Cardboard SDK stops working: no triggers, no settings button, and other effects. This occurrence is logged. To avoid this problem, ensure that no scene ever has more than one Cardboard component.
  • (Fixed in v0.5.2) Distortion correction on iOS when using native distortion (which requires OpenGL) looks erroneous. It is advised to use Metal, or if OpenGL is required, to force the use of the Unity distortion correction by setting CardboardAndroidDevice.debugDisableNativeDistortion to true.
  • (Removed in v0.6) In versions of Unity prior to 5.1.1, disallow portrait mode or else the onboarding dialog can result in a flickering screen if the user changes orientation. (This appears to have been a bug in Unity.)
  • See also the v0.5.0 Known Issues.

Changelog

  • Screen timeout disabled in iOS apps.
  • Reset VR Mode state on level load in case new scene does not have Cardboard.
  • Return correct Input.touchCount.
  • Crashing bug on certain models due to native code called PlatformInfo fixed.
  • GazeInputModule can be used with the mouse as well as with the Cardboard trigger.
  • Removed Simulate Distortion Correction flag in the Editor.
  • No longer force screen brightness to max on Android.
  • Removed the INTERNET permission from AndroidManifest.xml.
  • Split the demos into a separate unitypackage.
  • Ignore gyro drift setting on iOS (it doesn't need it).