| 1 | /************************************************************************************ |
| 2 | Filename : ONSPPropagationSettings.cs |
| 3 | Content : Exposes settings for Propagation |
| 4 | Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved. |
| 5 | |
| 6 | Licensed under the Oculus SDK Version 3.5 (the "License"); |
| 7 | you may not use the Oculus SDK except in compliance with the License, |
| 8 | which is provided at the time of installation or download, or which |
| 9 | otherwise accompanies this software in either electronic or hard copy form. |
| 10 | |
| 11 | You may obtain a copy of the License at |
| 12 | |
| 13 | https://developer.oculus.com/licenses/sdk-3.5/ |
| 14 | |
| 15 | Unless required by applicable law or agreed to in writing, the Oculus SDK |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 20 | ************************************************************************************/ |
| 21 | |
| 22 | using System.Collections; |
| 23 | using System.Collections.Generic; |
| 24 | using UnityEngine; |
| 25 | |
| 26 | public class ONSPPropagationSettings : MonoBehaviour |
| 27 | { |
| 28 | // quality as a percentage |
| 29 | public float quality = 100.0f; |
| 30 | |
| 31 | void Update () |
| 32 | { |
| 33 | ONSPPropagation.Interface.SetPropagationQuality(quality / 100.0f); |
| 34 | } |
| 35 | } |