{"__v":0,"_id":"58796781cd4a9c37007c9718","category":{"version":"58796781cd4a9c37007c96ef","project":"571fa55ca0acd42000af9545","_id":"58796781cd4a9c37007c9700","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-01-01T19:39:03.051Z","from_sync":false,"order":18,"slug":"oculusvr-sdk","title":"OculusVR SDK"},"parentDoc":null,"project":"571fa55ca0acd42000af9545","user":"571fa519db52d01700f5cf3d","version":{"__v":4,"_id":"58796781cd4a9c37007c96ef","project":"571fa55ca0acd42000af9545","createdAt":"2017-01-13T23:49:21.393Z","releaseDate":"2017-01-13T23:49:21.393Z","categories":["58796781cd4a9c37007c96f0","58796781cd4a9c37007c96f1","58796781cd4a9c37007c96f2","58796781cd4a9c37007c96f3","58796781cd4a9c37007c96f4","58796781cd4a9c37007c96f5","58796781cd4a9c37007c96f6","58796781cd4a9c37007c96f7","58796781cd4a9c37007c96f8","58796781cd4a9c37007c96f9","58796781cd4a9c37007c96fa","58796781cd4a9c37007c96fb","58796781cd4a9c37007c96fc","58796781cd4a9c37007c96fd","58796781cd4a9c37007c96fe","58796781cd4a9c37007c96ff","58796781cd4a9c37007c9700","58b157ca1756cf370022f90d","58b1596f5dae732f00adeca2","58b1605a5dae732f00adecb1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Mukota","version_clean":"3.1.0","version":"3.1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-01T19:39:58.840Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"> extends [SDK_BaseHeadset](doc:sdk_baseheadset)\n\n## Overview\n\nThe OculusVR Headset SDK script provides a bridge to the OculusVR SDK.\n\n## Class Methods\n\n### ProcessUpdate/1\n\n  > `public override void ProcessUpdate(Dictionary<string, object> options)`\n\n  * Parameters\n   * `Dictionary<string, object> options` - A dictionary of generic options that can be used to within the update.\n  * Returns\n   * _none_\n\nThe ProcessUpdate method enables an SDK to run logic for every Unity Update\n\n### GetHeadset/0\n\n  > `public override Transform GetHeadset()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `Transform` - A transform of the object representing the headset in the scene.\n\nThe GetHeadset method returns the Transform of the object that is used to represent the headset in the scene.\n\n### GetHeadsetCamera/0\n\n  > `public override Transform GetHeadsetCamera()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `Transform` - A transform of the object holding the headset camera in the scene.\n\nThe GetHeadsetCamera method returns the Transform of the object that is used to hold the headset camera in the scene.\n\n### GetHeadsetVelocity/0\n\n  > `public override Vector3 GetHeadsetVelocity()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `Vector3` - A Vector3 containing the current velocity of the headset.\n\nThe GetHeadsetVelocity method is used to determine the current velocity of the headset.\n\n### GetHeadsetAngularVelocity/0\n\n  > `public override Vector3 GetHeadsetAngularVelocity()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `Vector3` - A Vector3 containing the current angular velocity of the headset.\n\nThe GetHeadsetAngularVelocity method is used to determine the current angular velocity of the headset.\n\n### HeadsetFade/3\n\n  > `public override void HeadsetFade(Color color, float duration, bool fadeOverlay = false)`\n\n  * Parameters\n   * `Color color` - The colour to fade to.\n   * `float duration` - The amount of time the fade should take to reach the given colour.\n   * `bool fadeOverlay` - Determines whether to use an overlay on the fade.\n  * Returns\n   * _none_\n\nThe HeadsetFade method is used to apply a fade to the headset camera to progressively change the colour.\n\n### HasHeadsetFade/1\n\n  > `public override bool HasHeadsetFade(Transform obj)`\n\n  * Parameters\n   * `Transform obj` - The Transform to check to see if a camera fade is available on.\n  * Returns\n   * `bool` - Returns true if the headset has fade functionality on it.\n\nThe HasHeadsetFade method checks to see if the given game object (usually the camera) has the ability to fade the viewpoint.\n\n### AddHeadsetFade/1\n\n  > `public override void AddHeadsetFade(Transform camera)`\n\n  * Parameters\n   * `Transform camera` - The Transform to with the camera on to add the fade functionality to.\n  * Returns\n   * _none_\n\nThe AddHeadsetFade method attempts to add the fade functionality to the game object with the camera on it.","excerpt":"","slug":"sdk_oculusvrheadset","type":"basic","title":"SDK_OculusVRHeadset"}

SDK_OculusVRHeadset


> extends [SDK_BaseHeadset](doc:sdk_baseheadset) ## Overview The OculusVR Headset SDK script provides a bridge to the OculusVR SDK. ## Class Methods ### ProcessUpdate/1 > `public override void ProcessUpdate(Dictionary<string, object> options)` * Parameters * `Dictionary<string, object> options` - A dictionary of generic options that can be used to within the update. * Returns * _none_ The ProcessUpdate method enables an SDK to run logic for every Unity Update ### GetHeadset/0 > `public override Transform GetHeadset()` * Parameters * _none_ * Returns * `Transform` - A transform of the object representing the headset in the scene. The GetHeadset method returns the Transform of the object that is used to represent the headset in the scene. ### GetHeadsetCamera/0 > `public override Transform GetHeadsetCamera()` * Parameters * _none_ * Returns * `Transform` - A transform of the object holding the headset camera in the scene. The GetHeadsetCamera method returns the Transform of the object that is used to hold the headset camera in the scene. ### GetHeadsetVelocity/0 > `public override Vector3 GetHeadsetVelocity()` * Parameters * _none_ * Returns * `Vector3` - A Vector3 containing the current velocity of the headset. The GetHeadsetVelocity method is used to determine the current velocity of the headset. ### GetHeadsetAngularVelocity/0 > `public override Vector3 GetHeadsetAngularVelocity()` * Parameters * _none_ * Returns * `Vector3` - A Vector3 containing the current angular velocity of the headset. The GetHeadsetAngularVelocity method is used to determine the current angular velocity of the headset. ### HeadsetFade/3 > `public override void HeadsetFade(Color color, float duration, bool fadeOverlay = false)` * Parameters * `Color color` - The colour to fade to. * `float duration` - The amount of time the fade should take to reach the given colour. * `bool fadeOverlay` - Determines whether to use an overlay on the fade. * Returns * _none_ The HeadsetFade method is used to apply a fade to the headset camera to progressively change the colour. ### HasHeadsetFade/1 > `public override bool HasHeadsetFade(Transform obj)` * Parameters * `Transform obj` - The Transform to check to see if a camera fade is available on. * Returns * `bool` - Returns true if the headset has fade functionality on it. The HasHeadsetFade method checks to see if the given game object (usually the camera) has the ability to fade the viewpoint. ### AddHeadsetFade/1 > `public override void AddHeadsetFade(Transform camera)` * Parameters * `Transform camera` - The Transform to with the camera on to add the fade functionality to. * Returns * _none_ The AddHeadsetFade method attempts to add the fade functionality to the game object with the camera on it.